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 | 9 |
10 namespace dart { | 10 namespace dart { |
11 | 11 |
12 // Forward declarations. | 12 // Forward declarations. |
13 class Isolate; | 13 class Isolate; |
14 class ObjectPointerVisitor; | 14 class ObjectPointerVisitor; |
15 | 15 |
16 #define PREDEFINED_SYMBOLS_LIST(V) \ | 16 #define PREDEFINED_SYMBOLS_LIST(V) \ |
17 V(Dot, ".") \ | 17 V(Dot, ".") \ |
| 18 V(Equals, "=") \ |
18 V(IndexToken, "[]") \ | 19 V(IndexToken, "[]") \ |
19 V(AssignIndexToken, "[]=") \ | 20 V(AssignIndexToken, "[]=") \ |
20 V(TopLevel, "::") \ | 21 V(TopLevel, "::") \ |
21 V(Empty, "") \ | 22 V(Empty, "") \ |
22 V(This, "this") \ | 23 V(This, "this") \ |
23 V(HasNext, "hasNext") \ | 24 V(HasNext, "hasNext") \ |
24 V(Next, "next") \ | 25 V(Next, "next") \ |
25 V(Value, "value") \ | 26 V(Value, "value") \ |
26 V(ExprTemp, ":expr_temp") \ | 27 V(ExprTemp, ":expr_temp") \ |
27 V(Function, "function") \ | 28 V(AnonymousClosure, "<anonymous closure>") \ |
28 V(PhaseParameter, ":phase") \ | 29 V(PhaseParameter, ":phase") \ |
29 V(TypeArgumentsParameter, ":type_arguments") \ | 30 V(TypeArgumentsParameter, ":type_arguments") \ |
30 V(AssertionError, "AssertionError") \ | 31 V(AssertionError, "AssertionError") \ |
31 V(TypeError, "TypeError") \ | 32 V(TypeError, "TypeError") \ |
32 V(FallThroughError, "FallThroughError") \ | 33 V(FallThroughError, "FallThroughError") \ |
33 V(StaticResolutionException, "StaticResolutionException") \ | 34 V(StaticResolutionException, "StaticResolutionException") \ |
34 V(ThrowNew, "_throwNew") \ | 35 V(ThrowNew, "_throwNew") \ |
35 V(ListLiteralFactoryClass, "_ListLiteralFactory") \ | 36 V(ListLiteralFactoryClass, "_ListLiteralFactory") \ |
36 V(ListLiteralFactory, "List.fromLiteral") \ | 37 V(ListLiteralFactory, "List.fromLiteral") \ |
37 V(MapLiteralFactoryClass, "_MapLiteralFactory") \ | 38 V(MapLiteralFactoryClass, "_MapLiteralFactory") \ |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 friend class SnapshotReader; | 137 friend class SnapshotReader; |
137 friend class SnapshotWriter; | 138 friend class SnapshotWriter; |
138 friend class ApiMessageReader; | 139 friend class ApiMessageReader; |
139 | 140 |
140 DISALLOW_COPY_AND_ASSIGN(Symbols); | 141 DISALLOW_COPY_AND_ASSIGN(Symbols); |
141 }; | 142 }; |
142 | 143 |
143 } // namespace dart | 144 } // namespace dart |
144 | 145 |
145 #endif // VM_SYMBOLS_H_ | 146 #endif // VM_SYMBOLS_H_ |
OLD | NEW |