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

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: Finish native peer support 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 24 matching lines...) Expand all
35 kBoolInterface, 35 kBoolInterface,
36 kStringInterface, 36 kStringInterface,
37 kObjectClass, 37 kObjectClass,
38 kSmiClass, 38 kSmiClass,
39 kMintClass, 39 kMintClass,
40 kBigintClass, 40 kBigintClass,
41 kDoubleClass, 41 kDoubleClass,
42 kOneByteStringClass, 42 kOneByteStringClass,
43 kTwoByteStringClass, 43 kTwoByteStringClass,
44 kFourByteStringClass, 44 kFourByteStringClass,
45 kExternalOneByteStringClass,
46 kExternalTwoByteStringClass,
47 kExternalFourByteStringClass,
45 kBoolClass, 48 kBoolClass,
46 kArrayClass, 49 kArrayClass,
47 kImmutableArrayClass, 50 kImmutableArrayClass,
48 kUnhandledExceptionClass, 51 kUnhandledExceptionClass,
49 kStacktraceClass, 52 kStacktraceClass,
50 kJSRegExpClass, 53 kJSRegExpClass,
51 kMaxId, 54 kMaxId,
52 kInvalidIndex = -1, 55 kInvalidIndex = -1,
53 }; 56 };
54 57
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 RawClass* two_byte_string_class() const { return two_byte_string_class_; } 121 RawClass* two_byte_string_class() const { return two_byte_string_class_; }
119 void set_two_byte_string_class(const Class& value) { 122 void set_two_byte_string_class(const Class& value) {
120 two_byte_string_class_ = value.raw(); 123 two_byte_string_class_ = value.raw();
121 } 124 }
122 125
123 RawClass* four_byte_string_class() const { return four_byte_string_class_; } 126 RawClass* four_byte_string_class() const { return four_byte_string_class_; }
124 void set_four_byte_string_class(const Class& value) { 127 void set_four_byte_string_class(const Class& value) {
125 four_byte_string_class_ = value.raw(); 128 four_byte_string_class_ = value.raw();
126 } 129 }
127 130
131 RawClass* external_one_byte_string_class() const {
132 return external_one_byte_string_class_;
133 }
134 void set_external_one_byte_string_class(const Class& value) {
135 external_one_byte_string_class_ = value.raw();
136 }
137
138 RawClass* external_two_byte_string_class() const {
139 return external_two_byte_string_class_;
140 }
141 void set_external_two_byte_string_class(const Class& value) {
142 external_two_byte_string_class_ = value.raw();
143 }
144
145 RawClass* external_four_byte_string_class() const {
146 return external_four_byte_string_class_;
147 }
148 void set_external_four_byte_string_class(const Class& value) {
149 external_four_byte_string_class_ = value.raw();
150 }
151
128 RawType* bool_interface() const { return bool_interface_; } 152 RawType* bool_interface() const { return bool_interface_; }
129 void set_bool_interface(const Type& value) { bool_interface_ = value.raw(); } 153 void set_bool_interface(const Type& value) { bool_interface_ = value.raw(); }
130 154
131 RawClass* bool_class() const { return bool_class_; } 155 RawClass* bool_class() const { return bool_class_; }
132 void set_bool_class(const Class& value) { bool_class_ = value.raw(); } 156 void set_bool_class(const Class& value) { bool_class_ = value.raw(); }
133 157
134 RawClass* array_class() const { return array_class_; } 158 RawClass* array_class() const { return array_class_; }
135 void set_array_class(const Class& value) { array_class_ = value.raw(); } 159 void set_array_class(const Class& value) { array_class_ = value.raw(); }
136 static intptr_t array_class_offset() { 160 static intptr_t array_class_offset() {
137 return OFFSET_OF(ObjectStore, array_class_); 161 return OFFSET_OF(ObjectStore, array_class_);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 RawType* int_interface_; 270 RawType* int_interface_;
247 RawClass* smi_class_; 271 RawClass* smi_class_;
248 RawClass* mint_class_; 272 RawClass* mint_class_;
249 RawClass* bigint_class_; 273 RawClass* bigint_class_;
250 RawType* double_interface_; 274 RawType* double_interface_;
251 RawClass* double_class_; 275 RawClass* double_class_;
252 RawType* string_interface_; 276 RawType* string_interface_;
253 RawClass* one_byte_string_class_; 277 RawClass* one_byte_string_class_;
254 RawClass* two_byte_string_class_; 278 RawClass* two_byte_string_class_;
255 RawClass* four_byte_string_class_; 279 RawClass* four_byte_string_class_;
280 RawClass* external_one_byte_string_class_;
281 RawClass* external_two_byte_string_class_;
282 RawClass* external_four_byte_string_class_;
256 RawType* bool_interface_; 283 RawType* bool_interface_;
257 RawClass* bool_class_; 284 RawClass* bool_class_;
258 RawClass* array_class_; 285 RawClass* array_class_;
259 RawClass* immutable_array_class_; 286 RawClass* immutable_array_class_;
260 RawClass* unhandled_exception_class_; 287 RawClass* unhandled_exception_class_;
261 RawClass* stacktrace_class_; 288 RawClass* stacktrace_class_;
262 RawClass* jsregexp_class_; 289 RawClass* jsregexp_class_;
263 RawBool* true_value_; 290 RawBool* true_value_;
264 RawBool* false_value_; 291 RawBool* false_value_;
265 RawArray* empty_array_; 292 RawArray* empty_array_;
266 RawArray* symbol_table_; 293 RawArray* symbol_table_;
267 RawLibrary* core_library_; 294 RawLibrary* core_library_;
268 RawLibrary* core_impl_library_; 295 RawLibrary* core_impl_library_;
269 RawLibrary* root_library_; 296 RawLibrary* root_library_;
270 RawLibrary* registered_libraries_; 297 RawLibrary* registered_libraries_;
271 RawArray* pending_classes_; 298 RawArray* pending_classes_;
272 RawString* sticky_error_; 299 RawString* sticky_error_;
273 RawContext* empty_context_; 300 RawContext* empty_context_;
274 RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); } 301 RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); }
275 302
276 friend class SnapshotReader; 303 friend class SnapshotReader;
277 304
278 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 305 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
279 }; 306 };
280 307
281 } // namespace dart 308 } // namespace dart
282 309
283 #endif // VM_OBJECT_STORE_H_ 310 #endif // VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698