OLD | NEW |
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 RawClass* uint32x4_class() const { | 187 RawClass* uint32x4_class() const { |
188 return uint32x4_class_; | 188 return uint32x4_class_; |
189 } | 189 } |
190 void set_uint32x4_class(const Class& value) { | 190 void set_uint32x4_class(const Class& value) { |
191 uint32x4_class_ = value.raw(); | 191 uint32x4_class_ = value.raw(); |
192 } | 192 } |
193 | 193 |
194 RawType* uint32x4_type() const { return uint32x4_type_; } | 194 RawType* uint32x4_type() const { return uint32x4_type_; } |
195 void set_uint32x4_type(const Type& value) { uint32x4_type_ = value.raw(); } | 195 void set_uint32x4_type(const Type& value) { uint32x4_type_ = value.raw(); } |
196 | 196 |
197 RawArray* typeddata_classes() const { | 197 RawArray* typed_data_classes() const { |
198 return typeddata_classes_; | 198 return typed_data_classes_; |
199 } | 199 } |
200 void set_typeddata_classes(const Array& value) { | 200 void set_typed_data_classes(const Array& value) { |
201 typeddata_classes_ = value.raw(); | 201 typed_data_classes_ = value.raw(); |
202 } | 202 } |
203 | 203 |
204 RawClass* stacktrace_class() const { | 204 RawClass* stacktrace_class() const { |
205 return stacktrace_class_; | 205 return stacktrace_class_; |
206 } | 206 } |
207 void set_stacktrace_class(const Class& value) { | 207 void set_stacktrace_class(const Class& value) { |
208 stacktrace_class_ = value.raw(); | 208 stacktrace_class_ = value.raw(); |
209 } | 209 } |
210 static intptr_t stacktrace_class_offset() { | 210 static intptr_t stacktrace_class_offset() { |
211 return OFFSET_OF(ObjectStore, stacktrace_class_); | 211 return OFFSET_OF(ObjectStore, stacktrace_class_); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 } | 312 } |
313 void set_native_wrappers_library(const Library& value) { | 313 void set_native_wrappers_library(const Library& value) { |
314 native_wrappers_library_ = value.raw(); | 314 native_wrappers_library_ = value.raw(); |
315 } | 315 } |
316 | 316 |
317 RawLibrary* root_library() const { return root_library_; } | 317 RawLibrary* root_library() const { return root_library_; } |
318 void set_root_library(const Library& value) { | 318 void set_root_library(const Library& value) { |
319 root_library_ = value.raw(); | 319 root_library_ = value.raw(); |
320 } | 320 } |
321 | 321 |
322 RawLibrary* typeddata_library() const { | 322 RawLibrary* typed_data_library() const { |
323 return typeddata_library_; | 323 return typed_data_library_; |
324 } | 324 } |
325 void set_typeddata_library(const Library& value) { | 325 void set_typed_data_library(const Library& value) { |
326 typeddata_library_ = value.raw(); | 326 typed_data_library_ = value.raw(); |
327 } | 327 } |
328 | 328 |
329 RawLibrary* uri_library() const { | 329 RawLibrary* uri_library() const { |
330 return uri_library_; | 330 return uri_library_; |
331 } | 331 } |
332 void set_uri_library(const Library& value) { | 332 void set_uri_library(const Library& value) { |
333 uri_library_ = value.raw(); | 333 uri_library_ = value.raw(); |
334 } | 334 } |
335 | 335 |
336 RawLibrary* utf_library() const { | 336 RawLibrary* utf_library() const { |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 RawClass* external_two_byte_string_class_; | 457 RawClass* external_two_byte_string_class_; |
458 RawType* bool_type_; | 458 RawType* bool_type_; |
459 RawClass* bool_class_; | 459 RawClass* bool_class_; |
460 RawClass* list_class_; | 460 RawClass* list_class_; |
461 RawClass* array_class_; | 461 RawClass* array_class_; |
462 RawType* array_type_; | 462 RawType* array_type_; |
463 RawClass* immutable_array_class_; | 463 RawClass* immutable_array_class_; |
464 RawClass* growable_object_array_class_; | 464 RawClass* growable_object_array_class_; |
465 RawClass* float32x4_class_; | 465 RawClass* float32x4_class_; |
466 RawClass* uint32x4_class_; | 466 RawClass* uint32x4_class_; |
467 RawArray* typeddata_classes_; | 467 RawArray* typed_data_classes_; |
468 RawClass* stacktrace_class_; | 468 RawClass* stacktrace_class_; |
469 RawClass* jsregexp_class_; | 469 RawClass* jsregexp_class_; |
470 RawClass* weak_property_class_; | 470 RawClass* weak_property_class_; |
471 RawArray* symbol_table_; | 471 RawArray* symbol_table_; |
472 RawArray* canonical_type_arguments_; | 472 RawArray* canonical_type_arguments_; |
473 RawLibrary* async_library_; | 473 RawLibrary* async_library_; |
474 RawLibrary* builtin_library_; | 474 RawLibrary* builtin_library_; |
475 RawLibrary* core_library_; | 475 RawLibrary* core_library_; |
476 RawLibrary* core_impl_library_; | 476 RawLibrary* core_impl_library_; |
477 RawLibrary* collection_library_; | 477 RawLibrary* collection_library_; |
478 RawLibrary* collection_dev_library_; | 478 RawLibrary* collection_dev_library_; |
479 RawLibrary* crypto_library_; | 479 RawLibrary* crypto_library_; |
480 RawLibrary* isolate_library_; | 480 RawLibrary* isolate_library_; |
481 RawLibrary* json_library_; | 481 RawLibrary* json_library_; |
482 RawLibrary* math_library_; | 482 RawLibrary* math_library_; |
483 RawLibrary* mirrors_library_; | 483 RawLibrary* mirrors_library_; |
484 RawLibrary* native_wrappers_library_; | 484 RawLibrary* native_wrappers_library_; |
485 RawLibrary* root_library_; | 485 RawLibrary* root_library_; |
486 RawLibrary* typeddata_library_; | 486 RawLibrary* typed_data_library_; |
487 RawLibrary* uri_library_; | 487 RawLibrary* uri_library_; |
488 RawLibrary* utf_library_; | 488 RawLibrary* utf_library_; |
489 RawGrowableObjectArray* libraries_; | 489 RawGrowableObjectArray* libraries_; |
490 RawGrowableObjectArray* pending_classes_; | 490 RawGrowableObjectArray* pending_classes_; |
491 RawError* sticky_error_; | 491 RawError* sticky_error_; |
492 RawString* unhandled_exception_handler_; | 492 RawString* unhandled_exception_handler_; |
493 RawContext* empty_context_; | 493 RawContext* empty_context_; |
494 RawInstance* stack_overflow_; | 494 RawInstance* stack_overflow_; |
495 RawInstance* out_of_memory_; | 495 RawInstance* out_of_memory_; |
496 RawStacktrace* preallocated_stack_trace_; | 496 RawStacktrace* preallocated_stack_trace_; |
497 RawArray* keyword_symbols_; | 497 RawArray* keyword_symbols_; |
498 RawFunction* receive_port_create_function_; | 498 RawFunction* receive_port_create_function_; |
499 RawFunction* lookup_receive_port_function_; | 499 RawFunction* lookup_receive_port_function_; |
500 RawFunction* handle_message_function_; | 500 RawFunction* handle_message_function_; |
501 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 501 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
502 | 502 |
503 friend class SnapshotReader; | 503 friend class SnapshotReader; |
504 | 504 |
505 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 505 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
506 }; | 506 }; |
507 | 507 |
508 } // namespace dart | 508 } // namespace dart |
509 | 509 |
510 #endif // VM_OBJECT_STORE_H_ | 510 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |