Chromium Code Reviews| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 293 V(_LocalParameterMirror, "_LocalParameterMirror") \ | 293 V(_LocalParameterMirror, "_LocalParameterMirror") \ |
| 294 V(_LocalIsolateMirror, "_LocalIsolateMirror") \ | 294 V(_LocalIsolateMirror, "_LocalIsolateMirror") \ |
| 295 V(_LocalMirrorSystem, "_LocalMirrorSystem") \ | 295 V(_LocalMirrorSystem, "_LocalMirrorSystem") \ |
| 296 V(_LocalTypedefMirror, "_LocalTypedefMirror") \ | 296 V(_LocalTypedefMirror, "_LocalTypedefMirror") \ |
| 297 V(_LocalTypeVariableMirror, "_LocalTypeVariableMirror") \ | 297 V(_LocalTypeVariableMirror, "_LocalTypeVariableMirror") \ |
| 298 V(hashCode, "get:hashCode") \ | 298 V(hashCode, "get:hashCode") \ |
| 299 V(_leftShiftWithMask32, "_leftShiftWithMask32") \ | 299 V(_leftShiftWithMask32, "_leftShiftWithMask32") \ |
| 300 V(OptimizedOut, "<optimized out>") \ | 300 V(OptimizedOut, "<optimized out>") \ |
| 301 V(NotInitialized, "<not initialized>") \ | 301 V(NotInitialized, "<not initialized>") \ |
| 302 V(ClassId, "get:_classId") \ | 302 V(ClassId, "get:_classId") \ |
| 303 V(StringSym, "String") \ | |
|
Ivan Posva
2014/01/17 06:53:16
Can you move this together with the remaining Stri
Cutch
2014/01/17 18:37:59
Done.
| |
| 303 | 304 |
| 304 | 305 |
| 305 // Contains a list of frequently used strings in a canonicalized form. This | 306 // Contains a list of frequently used strings in a canonicalized form. This |
| 306 // list is kept in the vm_isolate in order to share the copy across isolates | 307 // list is kept in the vm_isolate in order to share the copy across isolates |
| 307 // without having to maintain copies in each isolate. | 308 // without having to maintain copies in each isolate. |
| 308 class Symbols : public AllStatic { | 309 class Symbols : public AllStatic { |
| 309 public: | 310 public: |
| 310 enum { kMaxOneCharCodeSymbol = 0xFF }; | 311 enum { kMaxOneCharCodeSymbol = 0xFF }; |
| 311 | 312 |
| 312 // List of strings that are pre created in the vm isolate. | 313 // List of strings that are pre created in the vm isolate. |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 511 friend class SnapshotReader; | 512 friend class SnapshotReader; |
| 512 friend class SnapshotWriter; | 513 friend class SnapshotWriter; |
| 513 friend class ApiMessageReader; | 514 friend class ApiMessageReader; |
| 514 | 515 |
| 515 DISALLOW_COPY_AND_ASSIGN(Symbols); | 516 DISALLOW_COPY_AND_ASSIGN(Symbols); |
| 516 }; | 517 }; |
| 517 | 518 |
| 518 } // namespace dart | 519 } // namespace dart |
| 519 | 520 |
| 520 #endif // VM_SYMBOLS_H_ | 521 #endif // VM_SYMBOLS_H_ |
| OLD | NEW |