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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 return OFFSET_OF(Isolate, current_zone_); | 167 return OFFSET_OF(Isolate, current_zone_); |
168 } | 168 } |
169 | 169 |
170 void set_init_callback_data(void* value) { | 170 void set_init_callback_data(void* value) { |
171 init_callback_data_ = value; | 171 init_callback_data_ = value; |
172 } | 172 } |
173 void* init_callback_data() const { | 173 void* init_callback_data() const { |
174 return init_callback_data_; | 174 return init_callback_data_; |
175 } | 175 } |
176 | 176 |
| 177 Dart_EnvironmentCallback environment_callback() const { |
| 178 return environment_callback_; |
| 179 } |
| 180 void set_environment_callback(Dart_EnvironmentCallback value) { |
| 181 environment_callback_ = value; |
| 182 } |
| 183 |
177 Dart_LibraryTagHandler library_tag_handler() const { | 184 Dart_LibraryTagHandler library_tag_handler() const { |
178 return library_tag_handler_; | 185 return library_tag_handler_; |
179 } | 186 } |
180 void set_library_tag_handler(Dart_LibraryTagHandler value) { | 187 void set_library_tag_handler(Dart_LibraryTagHandler value) { |
181 library_tag_handler_ = value; | 188 library_tag_handler_ = value; |
182 } | 189 } |
183 | 190 |
184 void SetStackLimit(uword value); | 191 void SetStackLimit(uword value); |
185 void SetStackLimitFromCurrentTOS(uword isolate_stack_top); | 192 void SetStackLimitFromCurrentTOS(uword isolate_stack_top); |
186 | 193 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 MegamorphicCacheTable megamorphic_cache_table_; | 393 MegamorphicCacheTable megamorphic_cache_table_; |
387 Dart_MessageNotifyCallback message_notify_callback_; | 394 Dart_MessageNotifyCallback message_notify_callback_; |
388 char* name_; | 395 char* name_; |
389 int64_t start_time_; | 396 int64_t start_time_; |
390 Dart_Port main_port_; | 397 Dart_Port main_port_; |
391 Heap* heap_; | 398 Heap* heap_; |
392 ObjectStore* object_store_; | 399 ObjectStore* object_store_; |
393 RawContext* top_context_; | 400 RawContext* top_context_; |
394 uword top_exit_frame_info_; | 401 uword top_exit_frame_info_; |
395 void* init_callback_data_; | 402 void* init_callback_data_; |
| 403 Dart_EnvironmentCallback environment_callback_; |
396 Dart_LibraryTagHandler library_tag_handler_; | 404 Dart_LibraryTagHandler library_tag_handler_; |
397 ApiState* api_state_; | 405 ApiState* api_state_; |
398 StubCode* stub_code_; | 406 StubCode* stub_code_; |
399 Debugger* debugger_; | 407 Debugger* debugger_; |
400 bool single_step_; | 408 bool single_step_; |
401 Simulator* simulator_; | 409 Simulator* simulator_; |
402 LongJump* long_jump_base_; | 410 LongJump* long_jump_base_; |
403 TimerList timer_list_; | 411 TimerList timer_list_; |
404 intptr_t deopt_id_; | 412 intptr_t deopt_id_; |
405 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. | 413 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 Isolate* isolate_; | 539 Isolate* isolate_; |
532 char* script_url_; | 540 char* script_url_; |
533 char* library_url_; | 541 char* library_url_; |
534 char* function_name_; | 542 char* function_name_; |
535 char* exception_callback_name_; | 543 char* exception_callback_name_; |
536 }; | 544 }; |
537 | 545 |
538 } // namespace dart | 546 } // namespace dart |
539 | 547 |
540 #endif // VM_ISOLATE_H_ | 548 #endif // VM_ISOLATE_H_ |
OLD | NEW |