OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_SYMBOLS_H_ | 5 #ifndef VM_SYMBOLS_H_ |
6 #define VM_SYMBOLS_H_ | 6 #define VM_SYMBOLS_H_ |
7 | 7 |
8 #include "vm/object.h" | 8 #include "vm/object.h" |
9 #include "vm/snapshot_ids.h" | 9 #include "vm/snapshot_ids.h" |
10 | 10 |
11 namespace dart { | 11 namespace dart { |
12 | 12 |
13 // Forward declarations. | 13 // Forward declarations. |
14 class Isolate; | 14 class Isolate; |
15 class ObjectPointerVisitor; | 15 class ObjectPointerVisitor; |
16 | 16 |
17 #define PREDEFINED_SYMBOLS_LIST(V) \ | 17 #define PREDEFINED_SYMBOLS_LIST(V) \ |
18 V(Empty, "") \ | 18 V(Empty, "") \ |
19 V(EqualOperator, "==") \ | 19 V(EqualOperator, "==") \ |
20 V(Identical, "identical") \ | 20 V(Identical, "identical") \ |
21 V(Length, "length") \ | 21 V(Length, "length") \ |
22 V(IndexToken, "[]") \ | 22 V(IndexToken, "[]") \ |
23 V(AssignIndexToken, "[]=") \ | 23 V(AssignIndexToken, "[]=") \ |
24 V(TopLevel, "::") \ | 24 V(TopLevel, "::") \ |
25 V(DefaultLabel, ":L") \ | 25 V(DefaultLabel, ":L") \ |
26 V(This, "this") \ | 26 V(This, "this") \ |
27 V(Super, "super") \ | 27 V(Super, "super") \ |
28 V(Call, "call") \ | 28 V(Call, "call") \ |
29 V(HasNext, "hasNext") \ | 29 V(Current, "current") \ |
30 V(Next, "next") \ | 30 V(MoveNext, "moveNext") \ |
31 V(Value, "value") \ | 31 V(Value, "value") \ |
32 V(ExprTemp, ":expr_temp") \ | 32 V(ExprTemp, ":expr_temp") \ |
33 V(AnonymousClosure, "<anonymous closure>") \ | 33 V(AnonymousClosure, "<anonymous closure>") \ |
34 V(ClosureParameter, ":closure") \ | 34 V(ClosureParameter, ":closure") \ |
35 V(PhaseParameter, ":phase") \ | 35 V(PhaseParameter, ":phase") \ |
36 V(TypeArgumentsParameter, ":type_arguments") \ | 36 V(TypeArgumentsParameter, ":type_arguments") \ |
37 V(AssertionError, "AssertionErrorImplementation") \ | 37 V(AssertionError, "AssertionErrorImplementation") \ |
38 V(TypeError, "TypeErrorImplementation") \ | 38 V(TypeError, "TypeErrorImplementation") \ |
39 V(FallThroughError, "FallThroughErrorImplementation") \ | 39 V(FallThroughError, "FallThroughErrorImplementation") \ |
40 V(AbstractClassInstantiationError, \ | 40 V(AbstractClassInstantiationError, \ |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 V(_ReceivePortImpl, "_ReceivePortImpl") \ | 159 V(_ReceivePortImpl, "_ReceivePortImpl") \ |
160 V(_lookupReceivePort, "_lookupReceivePort") \ | 160 V(_lookupReceivePort, "_lookupReceivePort") \ |
161 V(_handleMessage, "_handleMessage") \ | 161 V(_handleMessage, "_handleMessage") \ |
162 V(_SendPortImpl, "_SendPortImpl") \ | 162 V(_SendPortImpl, "_SendPortImpl") \ |
163 V(_create, "_create") \ | 163 V(_create, "_create") \ |
164 V(_id, "_id") \ | 164 V(_id, "_id") \ |
165 V(_get_or_create, "_get_or_create") \ | 165 V(_get_or_create, "_get_or_create") \ |
166 V(RangeError, "RangeError") \ | 166 V(RangeError, "RangeError") \ |
167 V(ArgumentError, "ArgumentError") \ | 167 V(ArgumentError, "ArgumentError") \ |
168 V(FormatException, "FormatException") \ | 168 V(FormatException, "FormatException") \ |
| 169 V(UnsupportedError, "UnsupportedError") \ |
169 V(StackOverflowError, "StackOverflowError") \ | 170 V(StackOverflowError, "StackOverflowError") \ |
170 V(OutOfMemoryError, "OutOfMemoryError") \ | 171 V(OutOfMemoryError, "OutOfMemoryError") \ |
171 V(InternalError, "InternalError") \ | 172 V(InternalError, "InternalError") \ |
172 V(NullThrownError, "NullThrownError") \ | 173 V(NullThrownError, "NullThrownError") \ |
173 V(IllegalJSRegExpException, "IllegalJSRegExpException") \ | 174 V(IllegalJSRegExpException, "IllegalJSRegExpException") \ |
174 V(IsolateSpawnException, "IsolateSpawnException") \ | 175 V(IsolateSpawnException, "IsolateSpawnException") \ |
175 V(IsolateUnhandledException, "IsolateUnhandledException") \ | 176 V(IsolateUnhandledException, "IsolateUnhandledException") \ |
176 V(BooleanExpression, "boolean expression") \ | 177 V(BooleanExpression, "boolean expression") \ |
177 V(Malformed, "malformed") \ | 178 V(Malformed, "malformed") \ |
178 V(InstanceOf, "InstanceOf") \ | 179 V(InstanceOf, "InstanceOf") \ |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 friend class SnapshotReader; | 372 friend class SnapshotReader; |
372 friend class SnapshotWriter; | 373 friend class SnapshotWriter; |
373 friend class ApiMessageReader; | 374 friend class ApiMessageReader; |
374 | 375 |
375 DISALLOW_COPY_AND_ASSIGN(Symbols); | 376 DISALLOW_COPY_AND_ASSIGN(Symbols); |
376 }; | 377 }; |
377 | 378 |
378 } // namespace dart | 379 } // namespace dart |
379 | 380 |
380 #endif // VM_SYMBOLS_H_ | 381 #endif // VM_SYMBOLS_H_ |
OLD | NEW |