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

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

Issue 8383029: Implement external strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fully displace external string metadata Created 9 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 25 matching lines...) Expand all
36 kStringInterface, 36 kStringInterface,
37 kListInterface, 37 kListInterface,
38 kObjectClass, 38 kObjectClass,
39 kSmiClass, 39 kSmiClass,
40 kMintClass, 40 kMintClass,
41 kBigintClass, 41 kBigintClass,
42 kDoubleClass, 42 kDoubleClass,
43 kOneByteStringClass, 43 kOneByteStringClass,
44 kTwoByteStringClass, 44 kTwoByteStringClass,
45 kFourByteStringClass, 45 kFourByteStringClass,
46 kExternalOneByteStringClass,
47 kExternalTwoByteStringClass,
48 kExternalFourByteStringClass,
46 kBoolClass, 49 kBoolClass,
47 kArrayClass, 50 kArrayClass,
48 kImmutableArrayClass, 51 kImmutableArrayClass,
49 kUnhandledExceptionClass, 52 kUnhandledExceptionClass,
50 kStacktraceClass, 53 kStacktraceClass,
51 kJSRegExpClass, 54 kJSRegExpClass,
52 kMaxId, 55 kMaxId,
53 kInvalidIndex = -1, 56 kInvalidIndex = -1,
54 }; 57 };
55 58
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 RawClass* two_byte_string_class() const { return two_byte_string_class_; } 122 RawClass* two_byte_string_class() const { return two_byte_string_class_; }
120 void set_two_byte_string_class(const Class& value) { 123 void set_two_byte_string_class(const Class& value) {
121 two_byte_string_class_ = value.raw(); 124 two_byte_string_class_ = value.raw();
122 } 125 }
123 126
124 RawClass* four_byte_string_class() const { return four_byte_string_class_; } 127 RawClass* four_byte_string_class() const { return four_byte_string_class_; }
125 void set_four_byte_string_class(const Class& value) { 128 void set_four_byte_string_class(const Class& value) {
126 four_byte_string_class_ = value.raw(); 129 four_byte_string_class_ = value.raw();
127 } 130 }
128 131
132 RawClass* external_one_byte_string_class() const {
133 return external_one_byte_string_class_;
134 }
135 void set_external_one_byte_string_class(const Class& value) {
136 external_one_byte_string_class_ = value.raw();
137 }
138
139 RawClass* external_two_byte_string_class() const {
140 return external_two_byte_string_class_;
141 }
142 void set_external_two_byte_string_class(const Class& value) {
143 external_two_byte_string_class_ = value.raw();
144 }
145
146 RawClass* external_four_byte_string_class() const {
147 return external_four_byte_string_class_;
148 }
149 void set_external_four_byte_string_class(const Class& value) {
150 external_four_byte_string_class_ = value.raw();
151 }
152
129 RawType* bool_interface() const { return bool_interface_; } 153 RawType* bool_interface() const { return bool_interface_; }
130 void set_bool_interface(const Type& value) { bool_interface_ = value.raw(); } 154 void set_bool_interface(const Type& value) { bool_interface_ = value.raw(); }
131 155
132 RawClass* bool_class() const { return bool_class_; } 156 RawClass* bool_class() const { return bool_class_; }
133 void set_bool_class(const Class& value) { bool_class_ = value.raw(); } 157 void set_bool_class(const Class& value) { bool_class_ = value.raw(); }
134 158
135 RawType* list_interface() const { return list_interface_; } 159 RawType* list_interface() const { return list_interface_; }
136 void set_list_interface(const Type& value) { 160 void set_list_interface(const Type& value) {
137 list_interface_ = value.raw(); 161 list_interface_ = value.raw();
138 } 162 }
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 RawType* int_interface_; 276 RawType* int_interface_;
253 RawClass* smi_class_; 277 RawClass* smi_class_;
254 RawClass* mint_class_; 278 RawClass* mint_class_;
255 RawClass* bigint_class_; 279 RawClass* bigint_class_;
256 RawType* double_interface_; 280 RawType* double_interface_;
257 RawClass* double_class_; 281 RawClass* double_class_;
258 RawType* string_interface_; 282 RawType* string_interface_;
259 RawClass* one_byte_string_class_; 283 RawClass* one_byte_string_class_;
260 RawClass* two_byte_string_class_; 284 RawClass* two_byte_string_class_;
261 RawClass* four_byte_string_class_; 285 RawClass* four_byte_string_class_;
286 RawClass* external_one_byte_string_class_;
287 RawClass* external_two_byte_string_class_;
288 RawClass* external_four_byte_string_class_;
262 RawType* bool_interface_; 289 RawType* bool_interface_;
263 RawClass* bool_class_; 290 RawClass* bool_class_;
264 RawType* list_interface_; 291 RawType* list_interface_;
265 RawClass* array_class_; 292 RawClass* array_class_;
266 RawClass* immutable_array_class_; 293 RawClass* immutable_array_class_;
267 RawClass* unhandled_exception_class_; 294 RawClass* unhandled_exception_class_;
268 RawClass* stacktrace_class_; 295 RawClass* stacktrace_class_;
269 RawClass* jsregexp_class_; 296 RawClass* jsregexp_class_;
270 RawBool* true_value_; 297 RawBool* true_value_;
271 RawBool* false_value_; 298 RawBool* false_value_;
272 RawArray* empty_array_; 299 RawArray* empty_array_;
273 RawArray* symbol_table_; 300 RawArray* symbol_table_;
274 RawLibrary* core_library_; 301 RawLibrary* core_library_;
275 RawLibrary* core_impl_library_; 302 RawLibrary* core_impl_library_;
276 RawLibrary* root_library_; 303 RawLibrary* root_library_;
277 RawLibrary* registered_libraries_; 304 RawLibrary* registered_libraries_;
278 RawArray* pending_classes_; 305 RawArray* pending_classes_;
279 RawString* sticky_error_; 306 RawString* sticky_error_;
280 RawContext* empty_context_; 307 RawContext* empty_context_;
281 RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); } 308 RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); }
282 309
283 friend class SnapshotReader; 310 friend class SnapshotReader;
284 311
285 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 312 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
286 }; 313 };
287 314
288 } // namespace dart 315 } // namespace dart
289 316
290 #endif // VM_OBJECT_STORE_H_ 317 #endif // VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698