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/growable_array.h" | 8 #include "vm/growable_array.h" |
9 #include "vm/object.h" | 9 #include "vm/object.h" |
10 #include "vm/snapshot_ids.h" | 10 #include "vm/snapshot_ids.h" |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 V(start_index_param, ":start_index_param") \ | 395 V(start_index_param, ":start_index_param") \ |
396 V(clear, "clear") \ | 396 V(clear, "clear") \ |
397 V(_wordCharacterMap, "_wordCharacterMap") \ | 397 V(_wordCharacterMap, "_wordCharacterMap") \ |
398 V(print, "print") \ | 398 V(print, "print") \ |
399 V(last, "last") \ | 399 V(last, "last") \ |
400 V(removeLast, "removeLast") \ | 400 V(removeLast, "removeLast") \ |
401 V(add, "add") \ | 401 V(add, "add") \ |
402 V(ConstructorClosurePrefix, "new#") \ | 402 V(ConstructorClosurePrefix, "new#") \ |
403 V(_runExtension, "_runExtension") \ | 403 V(_runExtension, "_runExtension") \ |
404 V(_runPendingImmediateCallback, "_runPendingImmediateCallback") \ | 404 V(_runPendingImmediateCallback, "_runPendingImmediateCallback") \ |
| 405 V(DartLibrary, "dart.library.") \ |
405 | 406 |
406 | 407 |
407 // Contains a list of frequently used strings in a canonicalized form. This | 408 // Contains a list of frequently used strings in a canonicalized form. This |
408 // list is kept in the vm_isolate in order to share the copy across isolates | 409 // list is kept in the vm_isolate in order to share the copy across isolates |
409 // without having to maintain copies in each isolate. | 410 // without having to maintain copies in each isolate. |
410 class Symbols : public AllStatic { | 411 class Symbols : public AllStatic { |
411 public: | 412 public: |
412 enum { kMaxOneCharCodeSymbol = 0xFF }; | 413 enum { kMaxOneCharCodeSymbol = 0xFF }; |
413 | 414 |
414 // List of strings that are pre created in the vm isolate. | 415 // List of strings that are pre created in the vm isolate. |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 friend class SnapshotReader; | 663 friend class SnapshotReader; |
663 friend class SnapshotWriter; | 664 friend class SnapshotWriter; |
664 friend class ApiMessageReader; | 665 friend class ApiMessageReader; |
665 | 666 |
666 DISALLOW_COPY_AND_ASSIGN(Symbols); | 667 DISALLOW_COPY_AND_ASSIGN(Symbols); |
667 }; | 668 }; |
668 | 669 |
669 } // namespace dart | 670 } // namespace dart |
670 | 671 |
671 #endif // VM_SYMBOLS_H_ | 672 #endif // VM_SYMBOLS_H_ |
OLD | NEW |