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