| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 kOneByteStringClass, | 43 kOneByteStringClass, |
| 44 kTwoByteStringClass, | 44 kTwoByteStringClass, |
| 45 kFourByteStringClass, | 45 kFourByteStringClass, |
| 46 kExternalOneByteStringClass, | 46 kExternalOneByteStringClass, |
| 47 kExternalTwoByteStringClass, | 47 kExternalTwoByteStringClass, |
| 48 kExternalFourByteStringClass, | 48 kExternalFourByteStringClass, |
| 49 kBoolClass, | 49 kBoolClass, |
| 50 kArrayClass, | 50 kArrayClass, |
| 51 kImmutableArrayClass, | 51 kImmutableArrayClass, |
| 52 kByteBufferClass, | 52 kByteBufferClass, |
| 53 kUnhandledExceptionClass, | |
| 54 kStacktraceClass, | 53 kStacktraceClass, |
| 55 kJSRegExpClass, | 54 kJSRegExpClass, |
| 56 kMaxId, | 55 kMaxId, |
| 57 kInvalidIndex = -1, | 56 kInvalidIndex = -1, |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 ~ObjectStore(); | 59 ~ObjectStore(); |
| 61 | 60 |
| 62 RawClass* object_class() const { return object_class_; } | 61 RawClass* object_class() const { return object_class_; } |
| 63 void set_object_class(const Class& value) { object_class_ = value.raw(); } | 62 void set_object_class(const Class& value) { object_class_ = value.raw(); } |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 RawClass* immutable_array_class() const { return immutable_array_class_; } | 184 RawClass* immutable_array_class() const { return immutable_array_class_; } |
| 186 void set_immutable_array_class(const Class& value) { | 185 void set_immutable_array_class(const Class& value) { |
| 187 immutable_array_class_ = value.raw(); | 186 immutable_array_class_ = value.raw(); |
| 188 } | 187 } |
| 189 | 188 |
| 190 RawClass* byte_buffer_class() const { return byte_buffer_class_; } | 189 RawClass* byte_buffer_class() const { return byte_buffer_class_; } |
| 191 void set_byte_buffer_class(const Class& value) { | 190 void set_byte_buffer_class(const Class& value) { |
| 192 byte_buffer_class_ = value.raw(); | 191 byte_buffer_class_ = value.raw(); |
| 193 } | 192 } |
| 194 | 193 |
| 195 RawClass* unhandled_exception_class() const { | |
| 196 return unhandled_exception_class_; | |
| 197 } | |
| 198 void set_unhandled_exception_class(const Class& value) { | |
| 199 unhandled_exception_class_ = value.raw(); | |
| 200 } | |
| 201 static intptr_t unhandled_exception_class_offset() { | |
| 202 return OFFSET_OF(ObjectStore, unhandled_exception_class_); | |
| 203 } | |
| 204 | |
| 205 RawClass* stacktrace_class() const { | 194 RawClass* stacktrace_class() const { |
| 206 return stacktrace_class_; | 195 return stacktrace_class_; |
| 207 } | 196 } |
| 208 void set_stacktrace_class(const Class& value) { | 197 void set_stacktrace_class(const Class& value) { |
| 209 stacktrace_class_ = value.raw(); | 198 stacktrace_class_ = value.raw(); |
| 210 } | 199 } |
| 211 static intptr_t stacktrace_class_offset() { | 200 static intptr_t stacktrace_class_offset() { |
| 212 return OFFSET_OF(ObjectStore, stacktrace_class_); | 201 return OFFSET_OF(ObjectStore, stacktrace_class_); |
| 213 } | 202 } |
| 214 | 203 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 RawClass* four_byte_string_class_; | 323 RawClass* four_byte_string_class_; |
| 335 RawClass* external_one_byte_string_class_; | 324 RawClass* external_one_byte_string_class_; |
| 336 RawClass* external_two_byte_string_class_; | 325 RawClass* external_two_byte_string_class_; |
| 337 RawClass* external_four_byte_string_class_; | 326 RawClass* external_four_byte_string_class_; |
| 338 RawType* bool_interface_; | 327 RawType* bool_interface_; |
| 339 RawClass* bool_class_; | 328 RawClass* bool_class_; |
| 340 RawType* list_interface_; | 329 RawType* list_interface_; |
| 341 RawClass* array_class_; | 330 RawClass* array_class_; |
| 342 RawClass* immutable_array_class_; | 331 RawClass* immutable_array_class_; |
| 343 RawClass* byte_buffer_class_; | 332 RawClass* byte_buffer_class_; |
| 344 RawClass* unhandled_exception_class_; | |
| 345 RawClass* stacktrace_class_; | 333 RawClass* stacktrace_class_; |
| 346 RawClass* jsregexp_class_; | 334 RawClass* jsregexp_class_; |
| 347 RawBool* true_value_; | 335 RawBool* true_value_; |
| 348 RawBool* false_value_; | 336 RawBool* false_value_; |
| 349 RawArray* empty_array_; | 337 RawArray* empty_array_; |
| 350 RawArray* symbol_table_; | 338 RawArray* symbol_table_; |
| 351 RawArray* canonical_type_arguments_; | 339 RawArray* canonical_type_arguments_; |
| 352 RawLibrary* core_library_; | 340 RawLibrary* core_library_; |
| 353 RawLibrary* core_impl_library_; | 341 RawLibrary* core_impl_library_; |
| 354 RawLibrary* native_wrappers_library_; | 342 RawLibrary* native_wrappers_library_; |
| 355 RawLibrary* root_library_; | 343 RawLibrary* root_library_; |
| 356 RawLibrary* registered_libraries_; | 344 RawLibrary* registered_libraries_; |
| 357 RawArray* pending_classes_; | 345 RawArray* pending_classes_; |
| 358 RawString* sticky_error_; | 346 RawString* sticky_error_; |
| 359 RawContext* empty_context_; | 347 RawContext* empty_context_; |
| 360 RawInstance* stack_overflow_; | 348 RawInstance* stack_overflow_; |
| 361 RawInstance* out_of_memory_; | 349 RawInstance* out_of_memory_; |
| 362 RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); } | 350 RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); } |
| 363 | 351 |
| 364 bool preallocate_objects_called_; | 352 bool preallocate_objects_called_; |
| 365 | 353 |
| 366 friend class SnapshotReader; | 354 friend class SnapshotReader; |
| 367 | 355 |
| 368 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 356 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 369 }; | 357 }; |
| 370 | 358 |
| 371 } // namespace dart | 359 } // namespace dart |
| 372 | 360 |
| 373 #endif // VM_OBJECT_STORE_H_ | 361 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |