| 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 out_of_memory_ = value.raw(); | 400 out_of_memory_ = value.raw(); |
| 401 } | 401 } |
| 402 | 402 |
| 403 RawStacktrace* preallocated_stack_trace() const { | 403 RawStacktrace* preallocated_stack_trace() const { |
| 404 return preallocated_stack_trace_; | 404 return preallocated_stack_trace_; |
| 405 } | 405 } |
| 406 void set_preallocated_stack_trace(const Stacktrace& value) { | 406 void set_preallocated_stack_trace(const Stacktrace& value) { |
| 407 preallocated_stack_trace_ = value.raw(); | 407 preallocated_stack_trace_ = value.raw(); |
| 408 } | 408 } |
| 409 | 409 |
| 410 RawFunction* receive_port_create_function() const { | 410 RawFunction* lookup_port_handler() const { |
| 411 return receive_port_create_function_; | 411 return lookup_port_handler_; |
| 412 } | 412 } |
| 413 void set_receive_port_create_function(const Function& function) { | 413 void set_lookup_port_handler(const Function& function) { |
| 414 receive_port_create_function_ = function.raw(); | 414 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 } | 415 } |
| 423 | 416 |
| 424 RawFunction* handle_message_function() const { | 417 RawFunction* handle_message_function() const { |
| 425 return handle_message_function_; | 418 return handle_message_function_; |
| 426 } | 419 } |
| 427 void set_handle_message_function(const Function& function) { | 420 void set_handle_message_function(const Function& function) { |
| 428 handle_message_function_ = function.raw(); | 421 handle_message_function_ = function.raw(); |
| 429 } | 422 } |
| 430 | 423 |
| 431 // Visit all object pointers. | 424 // Visit all object pointers. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 RawLibrary* profiler_library_; | 498 RawLibrary* profiler_library_; |
| 506 RawGrowableObjectArray* libraries_; | 499 RawGrowableObjectArray* libraries_; |
| 507 RawGrowableObjectArray* pending_classes_; | 500 RawGrowableObjectArray* pending_classes_; |
| 508 RawGrowableObjectArray* pending_functions_; | 501 RawGrowableObjectArray* pending_functions_; |
| 509 RawError* sticky_error_; | 502 RawError* sticky_error_; |
| 510 RawString* unhandled_exception_handler_; | 503 RawString* unhandled_exception_handler_; |
| 511 RawContext* empty_context_; | 504 RawContext* empty_context_; |
| 512 RawInstance* stack_overflow_; | 505 RawInstance* stack_overflow_; |
| 513 RawInstance* out_of_memory_; | 506 RawInstance* out_of_memory_; |
| 514 RawStacktrace* preallocated_stack_trace_; | 507 RawStacktrace* preallocated_stack_trace_; |
| 515 RawFunction* receive_port_create_function_; | 508 RawFunction* lookup_port_handler_; |
| 516 RawFunction* lookup_receive_port_function_; | |
| 517 RawFunction* handle_message_function_; | 509 RawFunction* handle_message_function_; |
| 518 RawObject** to() { | 510 RawObject** to() { |
| 519 return reinterpret_cast<RawObject**>(&handle_message_function_); | 511 return reinterpret_cast<RawObject**>(&handle_message_function_); |
| 520 } | 512 } |
| 521 | 513 |
| 522 friend class SnapshotReader; | 514 friend class SnapshotReader; |
| 523 | 515 |
| 524 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 516 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 525 }; | 517 }; |
| 526 | 518 |
| 527 } // namespace dart | 519 } // namespace dart |
| 528 | 520 |
| 529 #endif // VM_OBJECT_STORE_H_ | 521 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |