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

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

Issue 11318018: - Represent strings internally in UTF-16 format, this makes it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
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_OBJECT_STORE_H_ 5 #ifndef VM_OBJECT_STORE_H_
6 #define VM_OBJECT_STORE_H_ 6 #define VM_OBJECT_STORE_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 RawClass* one_byte_string_class() const { return one_byte_string_class_; } 110 RawClass* one_byte_string_class() const { return one_byte_string_class_; }
111 void set_one_byte_string_class(const Class& value) { 111 void set_one_byte_string_class(const Class& value) {
112 one_byte_string_class_ = value.raw(); 112 one_byte_string_class_ = value.raw();
113 } 113 }
114 114
115 RawClass* two_byte_string_class() const { return two_byte_string_class_; } 115 RawClass* two_byte_string_class() const { return two_byte_string_class_; }
116 void set_two_byte_string_class(const Class& value) { 116 void set_two_byte_string_class(const Class& value) {
117 two_byte_string_class_ = value.raw(); 117 two_byte_string_class_ = value.raw();
118 } 118 }
119 119
120 RawClass* four_byte_string_class() const { return four_byte_string_class_; }
121 void set_four_byte_string_class(const Class& value) {
122 four_byte_string_class_ = value.raw();
123 }
124
125 RawClass* external_one_byte_string_class() const { 120 RawClass* external_one_byte_string_class() const {
126 return external_one_byte_string_class_; 121 return external_one_byte_string_class_;
127 } 122 }
128 void set_external_one_byte_string_class(const Class& value) { 123 void set_external_one_byte_string_class(const Class& value) {
129 external_one_byte_string_class_ = value.raw(); 124 external_one_byte_string_class_ = value.raw();
130 } 125 }
131 126
132 RawClass* external_two_byte_string_class() const { 127 RawClass* external_two_byte_string_class() const {
133 return external_two_byte_string_class_; 128 return external_two_byte_string_class_;
134 } 129 }
135 void set_external_two_byte_string_class(const Class& value) { 130 void set_external_two_byte_string_class(const Class& value) {
136 external_two_byte_string_class_ = value.raw(); 131 external_two_byte_string_class_ = value.raw();
137 } 132 }
138 133
139 RawClass* external_four_byte_string_class() const {
140 return external_four_byte_string_class_;
141 }
142 void set_external_four_byte_string_class(const Class& value) {
143 external_four_byte_string_class_ = value.raw();
144 }
145
146 RawType* bool_type() const { return bool_type_; } 134 RawType* bool_type() const { return bool_type_; }
147 void set_bool_type(const Type& value) { bool_type_ = value.raw(); } 135 void set_bool_type(const Type& value) { bool_type_ = value.raw(); }
148 136
149 RawClass* bool_class() const { return bool_class_; } 137 RawClass* bool_class() const { return bool_class_; }
150 void set_bool_class(const Class& value) { bool_class_ = value.raw(); } 138 void set_bool_class(const Class& value) { bool_class_ = value.raw(); }
151 139
152 RawType* list_interface() const { return list_interface_; } 140 RawType* list_interface() const { return list_interface_; }
153 void set_list_interface(const Type& value) { 141 void set_list_interface(const Type& value) {
154 list_interface_ = value.raw(); 142 list_interface_ = value.raw();
155 } 143 }
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 RawClass* smi_class_; 475 RawClass* smi_class_;
488 RawType* smi_type_; 476 RawType* smi_type_;
489 RawClass* mint_class_; 477 RawClass* mint_class_;
490 RawType* mint_type_; 478 RawType* mint_type_;
491 RawClass* bigint_class_; 479 RawClass* bigint_class_;
492 RawClass* double_class_; 480 RawClass* double_class_;
493 RawType* double_type_; 481 RawType* double_type_;
494 RawType* string_interface_; 482 RawType* string_interface_;
495 RawClass* one_byte_string_class_; 483 RawClass* one_byte_string_class_;
496 RawClass* two_byte_string_class_; 484 RawClass* two_byte_string_class_;
497 RawClass* four_byte_string_class_;
498 RawClass* external_one_byte_string_class_; 485 RawClass* external_one_byte_string_class_;
499 RawClass* external_two_byte_string_class_; 486 RawClass* external_two_byte_string_class_;
500 RawClass* external_four_byte_string_class_;
501 RawType* bool_type_; 487 RawType* bool_type_;
502 RawClass* bool_class_; 488 RawClass* bool_class_;
503 RawType* list_interface_; 489 RawType* list_interface_;
504 RawClass* array_class_; 490 RawClass* array_class_;
505 RawClass* immutable_array_class_; 491 RawClass* immutable_array_class_;
506 RawClass* growable_object_array_class_; 492 RawClass* growable_object_array_class_;
507 RawClass* int8_array_class_; 493 RawClass* int8_array_class_;
508 RawClass* uint8_array_class_; 494 RawClass* uint8_array_class_;
509 RawClass* int16_array_class_; 495 RawClass* int16_array_class_;
510 RawClass* uint16_array_class_; 496 RawClass* uint16_array_class_;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 537 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
552 538
553 friend class SnapshotReader; 539 friend class SnapshotReader;
554 540
555 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 541 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
556 }; 542 };
557 543
558 } // namespace dart 544 } // namespace dart
559 545
560 #endif // VM_OBJECT_STORE_H_ 546 #endif // VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698