| 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 static RawString* FromUTF16(const uint16_t* utf16_array, intptr_t len); | 468 static RawString* FromUTF16(const uint16_t* utf16_array, intptr_t len); |
| 469 | 469 |
| 470 // Creates a new Symbol from an array of UTF-32 encoded characters. | 470 // Creates a new Symbol from an array of UTF-32 encoded characters. |
| 471 static RawString* FromUTF32(const int32_t* utf32_array, intptr_t len); | 471 static RawString* FromUTF32(const int32_t* utf32_array, intptr_t len); |
| 472 | 472 |
| 473 static RawString* New(const String& str); | 473 static RawString* New(const String& str); |
| 474 static RawString* New(const String& str, | 474 static RawString* New(const String& str, |
| 475 intptr_t begin_index, | 475 intptr_t begin_index, |
| 476 intptr_t length); | 476 intptr_t length); |
| 477 | 477 |
| 478 static RawString* FromConcat(const String& str1, const String& str2); |
| 479 |
| 478 // Returns char* of predefined symbol. | 480 // Returns char* of predefined symbol. |
| 479 static const char* Name(SymbolId symbol); | 481 static const char* Name(SymbolId symbol); |
| 480 | 482 |
| 481 static RawString* FromCharCode(int32_t char_code); | 483 static RawString* FromCharCode(int32_t char_code); |
| 482 | 484 |
| 483 static RawString** PredefinedAddress() { | 485 static RawString** PredefinedAddress() { |
| 484 return reinterpret_cast<RawString**>(&predefined_); | 486 return reinterpret_cast<RawString**>(&predefined_); |
| 485 } | 487 } |
| 486 | 488 |
| 487 static void DumpStats(); | 489 static void DumpStats(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 friend class SnapshotReader; | 523 friend class SnapshotReader; |
| 522 friend class SnapshotWriter; | 524 friend class SnapshotWriter; |
| 523 friend class ApiMessageReader; | 525 friend class ApiMessageReader; |
| 524 | 526 |
| 525 DISALLOW_COPY_AND_ASSIGN(Symbols); | 527 DISALLOW_COPY_AND_ASSIGN(Symbols); |
| 526 }; | 528 }; |
| 527 | 529 |
| 528 } // namespace dart | 530 } // namespace dart |
| 529 | 531 |
| 530 #endif // VM_SYMBOLS_H_ | 532 #endif // VM_SYMBOLS_H_ |
| OLD | NEW |