~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to Source/JavaScriptCore/runtime/JSType.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
 
3
 *
 
4
 *  This library is free software; you can redistribute it and/or
 
5
 *  modify it under the terms of the GNU Library General Public
 
6
 *  License as published by the Free Software Foundation; either
 
7
 *  version 2 of the License, or (at your option) any later version.
 
8
 *
 
9
 *  This library is distributed in the hope that it will be useful,
 
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 *  Library General Public License for more details.
 
13
 *
 
14
 *  You should have received a copy of the GNU Library General Public License
 
15
 *  along with this library; see the file COPYING.LIB.  If not, write to
 
16
 *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
 *  Boston, MA 02110-1301, USA.
 
18
 *
 
19
 */
 
20
 
 
21
#ifndef JSType_h
 
22
#define JSType_h
 
23
 
 
24
namespace JSC {
 
25
 
 
26
enum JSType {
 
27
    UnspecifiedType,
 
28
    UndefinedType,
 
29
    BooleanType,
 
30
    NumberType,
 
31
    NullType,
 
32
    StringType,
 
33
    LeafType,
 
34
 
 
35
    // The CompoundType value must come before any JSType that may have children.
 
36
    CompoundType,
 
37
    GetterSetterType,
 
38
    APIValueWrapperType,
 
39
 
 
40
    EvalExecutableType,
 
41
    ProgramExecutableType,
 
42
    FunctionExecutableType,
 
43
 
 
44
    UnlinkedFunctionExecutableType,
 
45
    UnlinkedProgramCodeBlockType,
 
46
    UnlinkedEvalCodeBlockType,
 
47
    UnlinkedFunctionCodeBlockType,
 
48
 
 
49
    // The ObjectType value must come before any JSType that is a subclass of JSObject.
 
50
    ObjectType,
 
51
    FinalObjectType,
 
52
    JSFunctionType,
 
53
    NameInstanceType,
 
54
    NumberObjectType,
 
55
    ErrorInstanceType,
 
56
    ProxyType,
 
57
    WithScopeType,
 
58
 
 
59
    NameScopeObjectType,
 
60
    // VariableObjectType must be less than MOST of the types of its subclasses and only its subclasses.
 
61
    // We use >=VariableObjectType checks to test for Global & Activation objects, but exclude NameScopes.
 
62
    VariableObjectType,
 
63
    GlobalObjectType,
 
64
    ActivationObjectType,
 
65
};
 
66
 
 
67
} // namespace JSC
 
68
 
 
69
#endif