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

Side by Side Diff: vm/object_store.h

Issue 11275008: - Represent strings internally in UTF-16 format, this makes it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 RawClass* smi_class_; 468 RawClass* smi_class_;
481 RawType* smi_type_; 469 RawType* smi_type_;
482 RawClass* mint_class_; 470 RawClass* mint_class_;
483 RawType* mint_type_; 471 RawType* mint_type_;
484 RawClass* bigint_class_; 472 RawClass* bigint_class_;
485 RawClass* double_class_; 473 RawClass* double_class_;
486 RawType* double_type_; 474 RawType* double_type_;
487 RawType* string_interface_; 475 RawType* string_interface_;
488 RawClass* one_byte_string_class_; 476 RawClass* one_byte_string_class_;
489 RawClass* two_byte_string_class_; 477 RawClass* two_byte_string_class_;
490 RawClass* four_byte_string_class_;
491 RawClass* external_one_byte_string_class_; 478 RawClass* external_one_byte_string_class_;
492 RawClass* external_two_byte_string_class_; 479 RawClass* external_two_byte_string_class_;
493 RawClass* external_four_byte_string_class_;
494 RawType* bool_type_; 480 RawType* bool_type_;
495 RawClass* bool_class_; 481 RawClass* bool_class_;
496 RawType* list_interface_; 482 RawType* list_interface_;
497 RawClass* array_class_; 483 RawClass* array_class_;
498 RawClass* immutable_array_class_; 484 RawClass* immutable_array_class_;
499 RawClass* growable_object_array_class_; 485 RawClass* growable_object_array_class_;
500 RawClass* int8_array_class_; 486 RawClass* int8_array_class_;
501 RawClass* uint8_array_class_; 487 RawClass* uint8_array_class_;
502 RawClass* int16_array_class_; 488 RawClass* int16_array_class_;
503 RawClass* uint16_array_class_; 489 RawClass* uint16_array_class_;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 529 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
544 530
545 friend class SnapshotReader; 531 friend class SnapshotReader;
546 532
547 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 533 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
548 }; 534 };
549 535
550 } // namespace dart 536 } // namespace dart
551 537
552 #endif // VM_OBJECT_STORE_H_ 538 #endif // VM_OBJECT_STORE_H_
OLDNEW
« vm/object.cc ('K') | « vm/object.cc ('k') | vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698