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(Dot, ".") \ | 19 V(Dot, ".") \ |
20 V(Equals, "=") \ | 20 V(Equals, "=") \ |
21 V(EqualOperator, "==") \ | 21 V(EqualOperator, "==") \ |
22 V(Identical, "identical") \ | 22 V(Identical, "identical") \ |
| 23 V(Length, "length") \ |
23 V(IndexToken, "[]") \ | 24 V(IndexToken, "[]") \ |
24 V(AssignIndexToken, "[]=") \ | 25 V(AssignIndexToken, "[]=") \ |
25 V(TopLevel, "::") \ | 26 V(TopLevel, "::") \ |
26 V(DefaultLabel, ":L") \ | 27 V(DefaultLabel, ":L") \ |
27 V(This, "this") \ | 28 V(This, "this") \ |
28 V(Super, "super") \ | 29 V(Super, "super") \ |
29 V(Call, "call") \ | 30 V(Call, "call") \ |
30 V(HasNext, "hasNext") \ | 31 V(HasNext, "hasNext") \ |
31 V(Next, "next") \ | 32 V(Next, "next") \ |
32 V(Value, "value") \ | 33 V(Value, "value") \ |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 friend class SnapshotReader; | 237 friend class SnapshotReader; |
237 friend class SnapshotWriter; | 238 friend class SnapshotWriter; |
238 friend class ApiMessageReader; | 239 friend class ApiMessageReader; |
239 | 240 |
240 DISALLOW_COPY_AND_ASSIGN(Symbols); | 241 DISALLOW_COPY_AND_ASSIGN(Symbols); |
241 }; | 242 }; |
242 | 243 |
243 } // namespace dart | 244 } // namespace dart |
244 | 245 |
245 #endif // VM_SYMBOLS_H_ | 246 #endif // VM_SYMBOLS_H_ |
OLD | NEW |