OLD | NEW |
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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 void set_registered_libraries(const Library& value) { | 248 void set_registered_libraries(const Library& value) { |
249 registered_libraries_ = value.raw(); | 249 registered_libraries_ = value.raw(); |
250 } | 250 } |
251 | 251 |
252 RawArray* pending_classes() const { return pending_classes_; } | 252 RawArray* pending_classes() const { return pending_classes_; } |
253 void set_pending_classes(const Array& value) { | 253 void set_pending_classes(const Array& value) { |
254 ASSERT(!value.IsNull()); | 254 ASSERT(!value.IsNull()); |
255 pending_classes_ = value.raw(); | 255 pending_classes_ = value.raw(); |
256 } | 256 } |
257 | 257 |
258 RawString* sticky_error() const { return sticky_error_; } | 258 RawError* sticky_error() const { return sticky_error_; } |
259 void set_sticky_error(const String& value) { | 259 void set_sticky_error(const Error& value) { |
260 ASSERT(!value.IsNull()); | 260 ASSERT(!value.IsNull()); |
261 sticky_error_ = value.raw(); | 261 sticky_error_ = value.raw(); |
262 } | 262 } |
263 | 263 |
264 RawBool* true_value() const { return true_value_; } | 264 RawBool* true_value() const { return true_value_; } |
265 void set_true_value(const Bool& value) { true_value_ = value.raw(); } | 265 void set_true_value(const Bool& value) { true_value_ = value.raw(); } |
266 | 266 |
267 RawBool* false_value() const { return false_value_; } | 267 RawBool* false_value() const { return false_value_; } |
268 void set_false_value(const Bool& value) { false_value_ = value.raw(); } | 268 void set_false_value(const Bool& value) { false_value_ = value.raw(); } |
269 | 269 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 RawBool* false_value_; | 336 RawBool* false_value_; |
337 RawArray* empty_array_; | 337 RawArray* empty_array_; |
338 RawArray* symbol_table_; | 338 RawArray* symbol_table_; |
339 RawArray* canonical_type_arguments_; | 339 RawArray* canonical_type_arguments_; |
340 RawLibrary* core_library_; | 340 RawLibrary* core_library_; |
341 RawLibrary* core_impl_library_; | 341 RawLibrary* core_impl_library_; |
342 RawLibrary* native_wrappers_library_; | 342 RawLibrary* native_wrappers_library_; |
343 RawLibrary* root_library_; | 343 RawLibrary* root_library_; |
344 RawLibrary* registered_libraries_; | 344 RawLibrary* registered_libraries_; |
345 RawArray* pending_classes_; | 345 RawArray* pending_classes_; |
346 RawString* sticky_error_; | 346 RawError* sticky_error_; |
347 RawContext* empty_context_; | 347 RawContext* empty_context_; |
348 RawInstance* stack_overflow_; | 348 RawInstance* stack_overflow_; |
349 RawInstance* out_of_memory_; | 349 RawInstance* out_of_memory_; |
350 RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); } | 350 RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); } |
351 | 351 |
352 bool preallocate_objects_called_; | 352 bool preallocate_objects_called_; |
353 | 353 |
354 friend class SnapshotReader; | 354 friend class SnapshotReader; |
355 | 355 |
356 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 356 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
357 }; | 357 }; |
358 | 358 |
359 } // namespace dart | 359 } // namespace dart |
360 | 360 |
361 #endif // VM_OBJECT_STORE_H_ | 361 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |