tizen beta release
[framework/web/webkit-efl.git] / Source / JavaScriptCore / runtime / JSType.h
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     // The ObjectType value must come before any JSType that is a subclass of JSObject.
45     ObjectType,
46     FinalObjectType,
47     JSFunctionType,
48     NumberObjectType,
49     ErrorInstanceType,
50     GlobalThisType,
51
52     // VariableObjectType must come before all of the types of its subclasses and only its subclasses.
53     VariableObjectType,
54     GlobalObjectType,
55     ActivationObjectType,
56     StaticScopeObjectType,
57 };
58
59 } // namespace JSC
60
61 #endif