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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 RawClass* error_class() const { | 234 RawClass* error_class() const { |
235 return error_class_; | 235 return error_class_; |
236 } | 236 } |
237 void set_error_class(const Class& value) { | 237 void set_error_class(const Class& value) { |
238 error_class_ = value.raw(); | 238 error_class_ = value.raw(); |
239 } | 239 } |
240 static intptr_t error_class_offset() { | 240 static intptr_t error_class_offset() { |
241 return OFFSET_OF(ObjectStore, error_class_); | 241 return OFFSET_OF(ObjectStore, error_class_); |
242 } | 242 } |
243 | 243 |
| 244 RawClass* capability_class() const { return capability_class_; } |
| 245 void set_capability_class(const Class& value) { |
| 246 capability_class_ = value.raw(); |
| 247 } |
| 248 |
| 249 RawClass* receive_port_class() const { return receive_port_class_; } |
| 250 void set_receive_port_class(const Class& value) { |
| 251 receive_port_class_ = value.raw(); |
| 252 } |
| 253 |
| 254 RawClass* send_port_class() const { return send_port_class_; } |
| 255 void set_send_port_class(const Class& value) { |
| 256 send_port_class_ = value.raw(); |
| 257 } |
| 258 |
244 RawClass* stacktrace_class() const { | 259 RawClass* stacktrace_class() const { |
245 return stacktrace_class_; | 260 return stacktrace_class_; |
246 } | 261 } |
247 void set_stacktrace_class(const Class& value) { | 262 void set_stacktrace_class(const Class& value) { |
248 stacktrace_class_ = value.raw(); | 263 stacktrace_class_ = value.raw(); |
249 } | 264 } |
250 static intptr_t stacktrace_class_offset() { | 265 static intptr_t stacktrace_class_offset() { |
251 return OFFSET_OF(ObjectStore, stacktrace_class_); | 266 return OFFSET_OF(ObjectStore, stacktrace_class_); |
252 } | 267 } |
253 | 268 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 out_of_memory_ = value.raw(); | 415 out_of_memory_ = value.raw(); |
401 } | 416 } |
402 | 417 |
403 RawStacktrace* preallocated_stack_trace() const { | 418 RawStacktrace* preallocated_stack_trace() const { |
404 return preallocated_stack_trace_; | 419 return preallocated_stack_trace_; |
405 } | 420 } |
406 void set_preallocated_stack_trace(const Stacktrace& value) { | 421 void set_preallocated_stack_trace(const Stacktrace& value) { |
407 preallocated_stack_trace_ = value.raw(); | 422 preallocated_stack_trace_ = value.raw(); |
408 } | 423 } |
409 | 424 |
410 RawFunction* receive_port_create_function() const { | 425 RawFunction* lookup_port_handler() const { |
411 return receive_port_create_function_; | 426 return lookup_port_handler_; |
412 } | 427 } |
413 void set_receive_port_create_function(const Function& function) { | 428 void set_lookup_port_handler(const Function& function) { |
414 receive_port_create_function_ = function.raw(); | 429 lookup_port_handler_ = function.raw(); |
415 } | |
416 | |
417 RawFunction* lookup_receive_port_function() const { | |
418 return lookup_receive_port_function_; | |
419 } | |
420 void set_lookup_receive_port_function(const Function& function) { | |
421 lookup_receive_port_function_ = function.raw(); | |
422 } | 430 } |
423 | 431 |
424 RawFunction* handle_message_function() const { | 432 RawFunction* handle_message_function() const { |
425 return handle_message_function_; | 433 return handle_message_function_; |
426 } | 434 } |
427 void set_handle_message_function(const Function& function) { | 435 void set_handle_message_function(const Function& function) { |
428 handle_message_function_ = function.raw(); | 436 handle_message_function_ = function.raw(); |
429 } | 437 } |
430 | 438 |
431 // Visit all object pointers. | 439 // Visit all object pointers. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 RawClass* bool_class_; | 484 RawClass* bool_class_; |
477 RawClass* array_class_; | 485 RawClass* array_class_; |
478 RawType* array_type_; | 486 RawType* array_type_; |
479 RawClass* immutable_array_class_; | 487 RawClass* immutable_array_class_; |
480 RawClass* growable_object_array_class_; | 488 RawClass* growable_object_array_class_; |
481 RawClass* float32x4_class_; | 489 RawClass* float32x4_class_; |
482 RawClass* int32x4_class_; | 490 RawClass* int32x4_class_; |
483 RawClass* float64x2_class_; | 491 RawClass* float64x2_class_; |
484 RawArray* typed_data_classes_; | 492 RawArray* typed_data_classes_; |
485 RawClass* error_class_; | 493 RawClass* error_class_; |
| 494 RawClass* capability_class_; |
| 495 RawClass* receive_port_class_; |
| 496 RawClass* send_port_class_; |
486 RawClass* stacktrace_class_; | 497 RawClass* stacktrace_class_; |
487 RawClass* jsregexp_class_; | 498 RawClass* jsregexp_class_; |
488 RawClass* weak_property_class_; | 499 RawClass* weak_property_class_; |
489 RawClass* mirror_reference_class_; | 500 RawClass* mirror_reference_class_; |
490 RawClass* user_tag_class_; | 501 RawClass* user_tag_class_; |
491 RawArray* symbol_table_; | 502 RawArray* symbol_table_; |
492 RawArray* canonical_type_arguments_; | 503 RawArray* canonical_type_arguments_; |
493 RawLibrary* async_library_; | 504 RawLibrary* async_library_; |
494 RawLibrary* builtin_library_; | 505 RawLibrary* builtin_library_; |
495 RawLibrary* core_library_; | 506 RawLibrary* core_library_; |
496 RawLibrary* collection_library_; | 507 RawLibrary* collection_library_; |
497 RawLibrary* convert_library_; | 508 RawLibrary* convert_library_; |
498 RawLibrary* internal_library_; | 509 RawLibrary* internal_library_; |
499 RawLibrary* isolate_library_; | 510 RawLibrary* isolate_library_; |
500 RawLibrary* math_library_; | 511 RawLibrary* math_library_; |
501 RawLibrary* mirrors_library_; | 512 RawLibrary* mirrors_library_; |
502 RawLibrary* native_wrappers_library_; | 513 RawLibrary* native_wrappers_library_; |
503 RawLibrary* root_library_; | 514 RawLibrary* root_library_; |
504 RawLibrary* typed_data_library_; | 515 RawLibrary* typed_data_library_; |
505 RawLibrary* profiler_library_; | 516 RawLibrary* profiler_library_; |
506 RawGrowableObjectArray* libraries_; | 517 RawGrowableObjectArray* libraries_; |
507 RawGrowableObjectArray* pending_classes_; | 518 RawGrowableObjectArray* pending_classes_; |
508 RawGrowableObjectArray* pending_functions_; | 519 RawGrowableObjectArray* pending_functions_; |
509 RawError* sticky_error_; | 520 RawError* sticky_error_; |
510 RawString* unhandled_exception_handler_; | 521 RawString* unhandled_exception_handler_; |
511 RawContext* empty_context_; | 522 RawContext* empty_context_; |
512 RawInstance* stack_overflow_; | 523 RawInstance* stack_overflow_; |
513 RawInstance* out_of_memory_; | 524 RawInstance* out_of_memory_; |
514 RawStacktrace* preallocated_stack_trace_; | 525 RawStacktrace* preallocated_stack_trace_; |
515 RawFunction* receive_port_create_function_; | 526 RawFunction* lookup_port_handler_; |
516 RawFunction* lookup_receive_port_function_; | |
517 RawFunction* handle_message_function_; | 527 RawFunction* handle_message_function_; |
518 RawObject** to() { | 528 RawObject** to() { |
519 return reinterpret_cast<RawObject**>(&handle_message_function_); | 529 return reinterpret_cast<RawObject**>(&handle_message_function_); |
520 } | 530 } |
521 | 531 |
522 friend class SnapshotReader; | 532 friend class SnapshotReader; |
523 | 533 |
524 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 534 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
525 }; | 535 }; |
526 | 536 |
527 } // namespace dart | 537 } // namespace dart |
528 | 538 |
529 #endif // VM_OBJECT_STORE_H_ | 539 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |