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 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 V(RParenArrow, ") => ") \ | 184 V(RParenArrow, ") => ") \ |
185 V(SpaceExtendsSpace, " extends ") \ | 185 V(SpaceExtendsSpace, " extends ") \ |
186 V(PatchSpace, "patch ") \ | 186 V(PatchSpace, "patch ") \ |
187 V(SwitchExpr, ":switch_expr") \ | 187 V(SwitchExpr, ":switch_expr") \ |
188 V(TwoNewlines, "\n\n") \ | 188 V(TwoNewlines, "\n\n") \ |
189 V(TwoSpaces, " ") \ | 189 V(TwoSpaces, " ") \ |
190 V(_instanceOf, "_instanceOf") \ | 190 V(_instanceOf, "_instanceOf") \ |
191 V(PrivateGetterPrefix, "get:_") \ | 191 V(PrivateGetterPrefix, "get:_") \ |
192 V(PrivateSetterPrefix, "set:_") \ | 192 V(PrivateSetterPrefix, "set:_") \ |
193 V(_New, "_new") \ | 193 V(_New, "_new") \ |
| 194 V(DartScheme, "dart:") \ |
| 195 V(DartSchemePrivate, "dart:_") \ |
| 196 V(DartCore, "dart:core") \ |
| 197 V(DartCollection, "dart:collection") \ |
| 198 V(DartCollectionDev, "dart:_collection-dev") \ |
| 199 V(DartMath, "dart:math") \ |
| 200 V(DartIsolate, "dart:isolate") \ |
| 201 V(DartMirrors, "dart:mirrors") \ |
| 202 V(DartScalarlist, "dart:scalarlist") \ |
| 203 V(DartNativeWrappers, "dart:nativewrappers") \ |
| 204 V(DartAsync, "dart:async") \ |
194 | 205 |
195 | 206 |
196 // Contains a list of frequently used strings in a canonicalized form. This | 207 // Contains a list of frequently used strings in a canonicalized form. This |
197 // list is kept in the vm_isolate in order to share the copy across isolates | 208 // list is kept in the vm_isolate in order to share the copy across isolates |
198 // without having to maintain copies in each isolate. | 209 // without having to maintain copies in each isolate. |
199 class Symbols : public AllStatic { | 210 class Symbols : public AllStatic { |
200 public: | 211 public: |
201 enum { kMaxOneCharCodeSymbol = 0xFF }; | 212 enum { kMaxOneCharCodeSymbol = 0xFF }; |
202 | 213 |
203 // List of strings that are pre created in the vm isolate. | 214 // List of strings that are pre created in the vm isolate. |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 friend class SnapshotReader; | 388 friend class SnapshotReader; |
378 friend class SnapshotWriter; | 389 friend class SnapshotWriter; |
379 friend class ApiMessageReader; | 390 friend class ApiMessageReader; |
380 | 391 |
381 DISALLOW_COPY_AND_ASSIGN(Symbols); | 392 DISALLOW_COPY_AND_ASSIGN(Symbols); |
382 }; | 393 }; |
383 | 394 |
384 } // namespace dart | 395 } // namespace dart |
385 | 396 |
386 #endif // VM_SYMBOLS_H_ | 397 #endif // VM_SYMBOLS_H_ |
OLD | NEW |