| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 return message_notify_callback_; | 136 return message_notify_callback_; |
| 137 } | 137 } |
| 138 void set_message_notify_callback(Dart_MessageNotifyCallback value) { | 138 void set_message_notify_callback(Dart_MessageNotifyCallback value) { |
| 139 message_notify_callback_ = value; | 139 message_notify_callback_ = value; |
| 140 } | 140 } |
| 141 | 141 |
| 142 const char* name() const { return name_; } | 142 const char* name() const { return name_; } |
| 143 | 143 |
| 144 int64_t start_time() const { return start_time_; } | 144 int64_t start_time() const { return start_time_; } |
| 145 | 145 |
| 146 Dart_Port main_port() { return main_port_; } | 146 Dart_Port main_port() const { return main_port_; } |
| 147 void set_main_port(Dart_Port port) { | 147 void set_main_port(Dart_Port port) { |
| 148 ASSERT(main_port_ == 0); // Only set main port once. | 148 ASSERT(main_port_ == 0); // Only set main port once. |
| 149 main_port_ = port; | 149 main_port_ = port; |
| 150 } | 150 } |
| 151 | 151 |
| 152 Heap* heap() const { return heap_; } | 152 Heap* heap() const { return heap_; } |
| 153 void set_heap(Heap* value) { heap_ = value; } | 153 void set_heap(Heap* value) { heap_ = value; } |
| 154 static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); } | 154 static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); } |
| 155 | 155 |
| 156 ObjectStore* object_store() const { return object_store_; } | 156 ObjectStore* object_store() const { return object_store_; } |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 } | 426 } |
| 427 | 427 |
| 428 void set_profiler_data(IsolateProfilerData* profiler_data) { | 428 void set_profiler_data(IsolateProfilerData* profiler_data) { |
| 429 profiler_data_ = profiler_data; | 429 profiler_data_ = profiler_data; |
| 430 } | 430 } |
| 431 | 431 |
| 432 IsolateProfilerData* profiler_data() const { | 432 IsolateProfilerData* profiler_data() const { |
| 433 return profiler_data_; | 433 return profiler_data_; |
| 434 } | 434 } |
| 435 | 435 |
| 436 void PrintToJSONStream(JSONStream* stream); | 436 void PrintToJSONStream(JSONStream* stream, bool ref = true); |
| 437 | 437 |
| 438 void set_thread_state(InterruptableThreadState* state) { | 438 void set_thread_state(InterruptableThreadState* state) { |
| 439 ASSERT((thread_state_ == NULL) || (state == NULL)); | 439 ASSERT((thread_state_ == NULL) || (state == NULL)); |
| 440 thread_state_ = state; | 440 thread_state_ = state; |
| 441 } | 441 } |
| 442 | 442 |
| 443 InterruptableThreadState* thread_state() const { | 443 InterruptableThreadState* thread_state() const { |
| 444 return thread_state_; | 444 return thread_state_; |
| 445 } | 445 } |
| 446 | 446 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 char* script_url_; | 656 char* script_url_; |
| 657 char* library_url_; | 657 char* library_url_; |
| 658 char* class_name_; | 658 char* class_name_; |
| 659 char* function_name_; | 659 char* function_name_; |
| 660 char* exception_callback_name_; | 660 char* exception_callback_name_; |
| 661 }; | 661 }; |
| 662 | 662 |
| 663 } // namespace dart | 663 } // namespace dart |
| 664 | 664 |
| 665 #endif // VM_ISOLATE_H_ | 665 #endif // VM_ISOLATE_H_ |
| OLD | NEW |