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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 } | 368 } |
369 static const String& Backtick() { | 369 static const String& Backtick() { |
370 return *(symbol_handles_[kNullCharId + '`']); | 370 return *(symbol_handles_[kNullCharId + '`']); |
371 } | 371 } |
372 static const String& Slash() { | 372 static const String& Slash() { |
373 return *(symbol_handles_[kNullCharId + '/']); | 373 return *(symbol_handles_[kNullCharId + '/']); |
374 } | 374 } |
375 static const String& At() { | 375 static const String& At() { |
376 return *(symbol_handles_[kNullCharId + '@']); | 376 return *(symbol_handles_[kNullCharId + '@']); |
377 } | 377 } |
| 378 static const String& Semicolon() { |
| 379 return *(symbol_handles_[kNullCharId + ';']); |
| 380 } |
378 | 381 |
379 // Access methods for symbol handles stored in the vm isolate. | 382 // Access methods for symbol handles stored in the vm isolate. |
380 #define DEFINE_SYMBOL_HANDLE_ACCESSOR(symbol, literal) \ | 383 #define DEFINE_SYMBOL_HANDLE_ACCESSOR(symbol, literal) \ |
381 static const String& symbol() { return *(symbol_handles_[k##symbol##Id]); } | 384 static const String& symbol() { return *(symbol_handles_[k##symbol##Id]); } |
382 PREDEFINED_SYMBOLS_LIST(DEFINE_SYMBOL_HANDLE_ACCESSOR) | 385 PREDEFINED_SYMBOLS_LIST(DEFINE_SYMBOL_HANDLE_ACCESSOR) |
383 #undef DEFINE_SYMBOL_HANDLE_ACCESSOR | 386 #undef DEFINE_SYMBOL_HANDLE_ACCESSOR |
384 | 387 |
385 // Initialize frequently used symbols in the vm isolate. | 388 // Initialize frequently used symbols in the vm isolate. |
386 static void InitOnce(Isolate* isolate); | 389 static void InitOnce(Isolate* isolate); |
387 | 390 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 friend class SnapshotReader; | 486 friend class SnapshotReader; |
484 friend class SnapshotWriter; | 487 friend class SnapshotWriter; |
485 friend class ApiMessageReader; | 488 friend class ApiMessageReader; |
486 | 489 |
487 DISALLOW_COPY_AND_ASSIGN(Symbols); | 490 DISALLOW_COPY_AND_ASSIGN(Symbols); |
488 }; | 491 }; |
489 | 492 |
490 } // namespace dart | 493 } // namespace dart |
491 | 494 |
492 #endif // VM_SYMBOLS_H_ | 495 #endif // VM_SYMBOLS_H_ |
OLD | NEW |