| 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 "vm/atomic.h" | 10 #include "vm/atomic.h" |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 const uint8_t* instructions_snapshot_buffer); | 242 const uint8_t* instructions_snapshot_buffer); |
| 243 | 243 |
| 244 void ScheduleMessageInterrupts(); | 244 void ScheduleMessageInterrupts(); |
| 245 | 245 |
| 246 // Marks all libraries as loaded. | 246 // Marks all libraries as loaded. |
| 247 void DoneLoading(); | 247 void DoneLoading(); |
| 248 void DoneFinalizing(); | 248 void DoneFinalizing(); |
| 249 | 249 |
| 250 // By default the reload context is deleted. This parameter allows | 250 // By default the reload context is deleted. This parameter allows |
| 251 // the caller to delete is separately if it is still needed. | 251 // the caller to delete is separately if it is still needed. |
| 252 void ReloadSources(bool force_reload, | 252 bool ReloadSources(JSONStream* js, |
| 253 bool force_reload, |
| 253 bool dont_delete_reload_context = false); | 254 bool dont_delete_reload_context = false); |
| 254 | 255 |
| 255 bool MakeRunnable(); | 256 bool MakeRunnable(); |
| 256 void Run(); | 257 void Run(); |
| 257 | 258 |
| 258 MessageHandler* message_handler() const { return message_handler_; } | 259 MessageHandler* message_handler() const { return message_handler_; } |
| 259 void set_message_handler(MessageHandler* value) { message_handler_ = value; } | 260 void set_message_handler(MessageHandler* value) { message_handler_ = value; } |
| 260 | 261 |
| 261 bool is_runnable() const { return is_runnable_; } | 262 bool is_runnable() const { return is_runnable_; } |
| 262 void set_is_runnable(bool value) { | 263 void set_is_runnable(bool value) { |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 | 533 |
| 533 RawGrowableObjectArray* deoptimized_code_array() const { | 534 RawGrowableObjectArray* deoptimized_code_array() const { |
| 534 return deoptimized_code_array_; | 535 return deoptimized_code_array_; |
| 535 } | 536 } |
| 536 void set_deoptimized_code_array(const GrowableObjectArray& value); | 537 void set_deoptimized_code_array(const GrowableObjectArray& value); |
| 537 void TrackDeoptimizedCode(const Code& code); | 538 void TrackDeoptimizedCode(const Code& code); |
| 538 | 539 |
| 539 RawError* sticky_error() const { return sticky_error_; } | 540 RawError* sticky_error() const { return sticky_error_; } |
| 540 void clear_sticky_error(); | 541 void clear_sticky_error(); |
| 541 | 542 |
| 542 RawError* sticky_reload_error() const { return sticky_reload_error_; } | |
| 543 void clear_sticky_reload_error(); | |
| 544 | |
| 545 bool compilation_allowed() const { return compilation_allowed_; } | 543 bool compilation_allowed() const { return compilation_allowed_; } |
| 546 void set_compilation_allowed(bool allowed) { | 544 void set_compilation_allowed(bool allowed) { |
| 547 compilation_allowed_ = allowed; | 545 compilation_allowed_ = allowed; |
| 548 } | 546 } |
| 549 | 547 |
| 550 // In precompilation we finalize all regular classes before compiling. | 548 // In precompilation we finalize all regular classes before compiling. |
| 551 bool all_classes_finalized() const { return all_classes_finalized_; } | 549 bool all_classes_finalized() const { return all_classes_finalized_; } |
| 552 void set_all_classes_finalized(bool value) { | 550 void set_all_classes_finalized(bool value) { |
| 553 all_classes_finalized_ = value; | 551 all_classes_finalized_ = value; |
| 554 } | 552 } |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 // Ring buffer of objects assigned an id. | 762 // Ring buffer of objects assigned an id. |
| 765 ObjectIdRing* object_id_ring_; | 763 ObjectIdRing* object_id_ring_; |
| 766 | 764 |
| 767 VMTagCounters vm_tag_counters_; | 765 VMTagCounters vm_tag_counters_; |
| 768 RawGrowableObjectArray* tag_table_; | 766 RawGrowableObjectArray* tag_table_; |
| 769 | 767 |
| 770 RawGrowableObjectArray* deoptimized_code_array_; | 768 RawGrowableObjectArray* deoptimized_code_array_; |
| 771 | 769 |
| 772 RawError* sticky_error_; | 770 RawError* sticky_error_; |
| 773 | 771 |
| 774 RawError* sticky_reload_error_; | |
| 775 | |
| 776 // Background compilation. | 772 // Background compilation. |
| 777 BackgroundCompiler* background_compiler_; | 773 BackgroundCompiler* background_compiler_; |
| 778 intptr_t background_compiler_disabled_depth_; | 774 intptr_t background_compiler_disabled_depth_; |
| 779 | 775 |
| 780 // We use 6 list entries for each pending service extension calls. | 776 // We use 6 list entries for each pending service extension calls. |
| 781 enum { | 777 enum { |
| 782 kPendingHandlerIndex = 0, | 778 kPendingHandlerIndex = 0, |
| 783 kPendingMethodNameIndex, | 779 kPendingMethodNameIndex, |
| 784 kPendingKeysIndex, | 780 kPendingKeysIndex, |
| 785 kPendingValuesIndex, | 781 kPendingValuesIndex, |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 intptr_t* spawn_count_; | 990 intptr_t* spawn_count_; |
| 995 | 991 |
| 996 Dart_IsolateFlags isolate_flags_; | 992 Dart_IsolateFlags isolate_flags_; |
| 997 bool paused_; | 993 bool paused_; |
| 998 bool errors_are_fatal_; | 994 bool errors_are_fatal_; |
| 999 }; | 995 }; |
| 1000 | 996 |
| 1001 } // namespace dart | 997 } // namespace dart |
| 1002 | 998 |
| 1003 #endif // VM_ISOLATE_H_ | 999 #endif // VM_ISOLATE_H_ |
| OLD | NEW |