| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_ISOLATE_H_ | 5 #ifndef VM_ISOLATE_H_ |
| 6 #define VM_ISOLATE_H_ | 6 #define VM_ISOLATE_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "platform/thread.h" | 10 #include "platform/thread.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 return message_notify_callback_; | 135 return message_notify_callback_; |
| 136 } | 136 } |
| 137 void set_message_notify_callback(Dart_MessageNotifyCallback value) { | 137 void set_message_notify_callback(Dart_MessageNotifyCallback value) { |
| 138 message_notify_callback_ = value; | 138 message_notify_callback_ = value; |
| 139 } | 139 } |
| 140 | 140 |
| 141 const char* name() const { return name_; } | 141 const char* name() const { return name_; } |
| 142 | 142 |
| 143 int64_t start_time() const { return start_time_; } | 143 int64_t start_time() const { return start_time_; } |
| 144 | 144 |
| 145 // Creates the pin port (responsible for stopping the isolate from being | |
| 146 // destroyed). | |
| 147 void CreatePinPort(); | |
| 148 // Closes pin port. | |
| 149 void ClosePinPort(); | |
| 150 | |
| 151 Dart_Port main_port() { return main_port_; } | 145 Dart_Port main_port() { return main_port_; } |
| 152 void set_main_port(Dart_Port port) { | 146 void set_main_port(Dart_Port port) { |
| 153 ASSERT(main_port_ == 0); // Only set main port once. | 147 ASSERT(main_port_ == 0); // Only set main port once. |
| 154 main_port_ = port; | 148 main_port_ = port; |
| 155 } | 149 } |
| 156 | 150 |
| 157 Heap* heap() const { return heap_; } | 151 Heap* heap() const { return heap_; } |
| 158 void set_heap(Heap* value) { heap_ = value; } | 152 void set_heap(Heap* value) { heap_ = value; } |
| 159 static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); } | 153 static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); } |
| 160 | 154 |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 template<class T> T* AllocateReusableHandle(); | 473 template<class T> T* AllocateReusableHandle(); |
| 480 | 474 |
| 481 static ThreadLocalKey isolate_key; | 475 static ThreadLocalKey isolate_key; |
| 482 | 476 |
| 483 StoreBuffer store_buffer_; | 477 StoreBuffer store_buffer_; |
| 484 ClassTable class_table_; | 478 ClassTable class_table_; |
| 485 MegamorphicCacheTable megamorphic_cache_table_; | 479 MegamorphicCacheTable megamorphic_cache_table_; |
| 486 Dart_MessageNotifyCallback message_notify_callback_; | 480 Dart_MessageNotifyCallback message_notify_callback_; |
| 487 char* name_; | 481 char* name_; |
| 488 int64_t start_time_; | 482 int64_t start_time_; |
| 489 Dart_Port pin_port_; | |
| 490 Dart_Port main_port_; | 483 Dart_Port main_port_; |
| 491 Heap* heap_; | 484 Heap* heap_; |
| 492 ObjectStore* object_store_; | 485 ObjectStore* object_store_; |
| 493 RawContext* top_context_; | 486 RawContext* top_context_; |
| 494 uword top_exit_frame_info_; | 487 uword top_exit_frame_info_; |
| 495 void* init_callback_data_; | 488 void* init_callback_data_; |
| 496 Dart_EnvironmentCallback environment_callback_; | 489 Dart_EnvironmentCallback environment_callback_; |
| 497 Dart_LibraryTagHandler library_tag_handler_; | 490 Dart_LibraryTagHandler library_tag_handler_; |
| 498 ApiState* api_state_; | 491 ApiState* api_state_; |
| 499 StubCode* stub_code_; | 492 StubCode* stub_code_; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 char* script_url_; | 655 char* script_url_; |
| 663 char* library_url_; | 656 char* library_url_; |
| 664 char* class_name_; | 657 char* class_name_; |
| 665 char* function_name_; | 658 char* function_name_; |
| 666 char* exception_callback_name_; | 659 char* exception_callback_name_; |
| 667 }; | 660 }; |
| 668 | 661 |
| 669 } // namespace dart | 662 } // namespace dart |
| 670 | 663 |
| 671 #endif // VM_ISOLATE_H_ | 664 #endif // VM_ISOLATE_H_ |
| OLD | NEW |