| 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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 // Creates a new Symbol from an array of UTF-32 encoded characters. | 589 // Creates a new Symbol from an array of UTF-32 encoded characters. |
| 590 static RawString* FromUTF32(const int32_t* utf32_array, intptr_t len); | 590 static RawString* FromUTF32(const int32_t* utf32_array, intptr_t len); |
| 591 | 591 |
| 592 static RawString* New(const String& str); | 592 static RawString* New(const String& str); |
| 593 static RawString* New(const String& str, | 593 static RawString* New(const String& str, |
| 594 intptr_t begin_index, | 594 intptr_t begin_index, |
| 595 intptr_t length); | 595 intptr_t length); |
| 596 | 596 |
| 597 static RawString* FromConcat(const String& str1, const String& str2); | 597 static RawString* FromConcat(const String& str1, const String& str2); |
| 598 | 598 |
| 599 static RawString* FromConcatAll(const GrowableArray<const String*>& strs); | 599 static RawString* FromConcatAll( |
| 600 const GrowableHandlePtrArray<const String>& strs); |
| 600 | 601 |
| 601 // Returns char* of predefined symbol. | 602 // Returns char* of predefined symbol. |
| 602 static const char* Name(SymbolId symbol); | 603 static const char* Name(SymbolId symbol); |
| 603 | 604 |
| 604 static RawString* FromCharCode(int32_t char_code); | 605 static RawString* FromCharCode(int32_t char_code); |
| 605 | 606 |
| 606 static RawString** PredefinedAddress() { | 607 static RawString** PredefinedAddress() { |
| 607 return reinterpret_cast<RawString**>(&predefined_); | 608 return reinterpret_cast<RawString**>(&predefined_); |
| 608 } | 609 } |
| 609 | 610 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 friend class SnapshotReader; | 643 friend class SnapshotReader; |
| 643 friend class SnapshotWriter; | 644 friend class SnapshotWriter; |
| 644 friend class ApiMessageReader; | 645 friend class ApiMessageReader; |
| 645 | 646 |
| 646 DISALLOW_COPY_AND_ASSIGN(Symbols); | 647 DISALLOW_COPY_AND_ASSIGN(Symbols); |
| 647 }; | 648 }; |
| 648 | 649 |
| 649 } // namespace dart | 650 } // namespace dart |
| 650 | 651 |
| 651 #endif // VM_SYMBOLS_H_ | 652 #endif // VM_SYMBOLS_H_ |
| OLD | NEW |