Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Side by Side Diff: runtime/vm/symbols.h

Issue 1312833009: Added {Zone}GrowableHandlePtrArray types: simplifies code, makes code safer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: d Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/symbols.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/symbols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698