Chromium Code Reviews| 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 700 return deoptimized_code_array_; | 700 return deoptimized_code_array_; |
| 701 } | 701 } |
| 702 void set_deoptimized_code_array(const GrowableObjectArray& value); | 702 void set_deoptimized_code_array(const GrowableObjectArray& value); |
| 703 void TrackDeoptimizedCode(const Code& code); | 703 void TrackDeoptimizedCode(const Code& code); |
| 704 | 704 |
| 705 bool compilation_allowed() const { return compilation_allowed_; } | 705 bool compilation_allowed() const { return compilation_allowed_; } |
| 706 void set_compilation_allowed(bool allowed) { | 706 void set_compilation_allowed(bool allowed) { |
| 707 compilation_allowed_ = allowed; | 707 compilation_allowed_ = allowed; |
| 708 } | 708 } |
| 709 | 709 |
| 710 RawGrowableObjectArray* pending_extension_calls() const { | |
| 711 return pending_extension_calls_; | |
| 712 } | |
| 713 void set_pending_extension_calls(const GrowableObjectArray& value); | |
|
turnidge
2015/08/20 17:34:39
Maybe make pending_extension_calls, set_pending_ex
Cutch
2015/08/20 18:09:37
Done.
| |
| 714 RawObject* InvokePendingExtensionCalls(); | |
| 715 RawGrowableObjectArray* PrunePendingExtensionCalls(); | |
| 716 void AppendExtensionCall(const Instance& closure); | |
| 717 | |
| 710 #if defined(DEBUG) | 718 #if defined(DEBUG) |
| 711 #define REUSABLE_HANDLE_SCOPE_ACCESSORS(object) \ | 719 #define REUSABLE_HANDLE_SCOPE_ACCESSORS(object) \ |
| 712 void set_reusable_##object##_handle_scope_active(bool value) { \ | 720 void set_reusable_##object##_handle_scope_active(bool value) { \ |
| 713 reusable_##object##_handle_scope_active_ = value; \ | 721 reusable_##object##_handle_scope_active_ = value; \ |
| 714 } \ | 722 } \ |
| 715 bool reusable_##object##_handle_scope_active() const { \ | 723 bool reusable_##object##_handle_scope_active() const { \ |
| 716 return reusable_##object##_handle_scope_active_; \ | 724 return reusable_##object##_handle_scope_active_; \ |
| 717 } | 725 } |
| 718 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_ACCESSORS) | 726 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_ACCESSORS) |
| 719 #undef REUSABLE_HANDLE_SCOPE_ACCESSORS | 727 #undef REUSABLE_HANDLE_SCOPE_ACCESSORS |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 854 | 862 |
| 855 VMTagCounters vm_tag_counters_; | 863 VMTagCounters vm_tag_counters_; |
| 856 uword user_tag_; | 864 uword user_tag_; |
| 857 RawGrowableObjectArray* tag_table_; | 865 RawGrowableObjectArray* tag_table_; |
| 858 RawUserTag* current_tag_; | 866 RawUserTag* current_tag_; |
| 859 RawUserTag* default_tag_; | 867 RawUserTag* default_tag_; |
| 860 | 868 |
| 861 RawGrowableObjectArray* collected_closures_; | 869 RawGrowableObjectArray* collected_closures_; |
| 862 RawGrowableObjectArray* deoptimized_code_array_; | 870 RawGrowableObjectArray* deoptimized_code_array_; |
| 863 | 871 |
| 872 RawGrowableObjectArray* pending_extension_calls_; | |
| 873 | |
| 864 Metric* metrics_list_head_; | 874 Metric* metrics_list_head_; |
| 865 | 875 |
| 866 Counters counters_; | 876 Counters counters_; |
| 867 | 877 |
| 868 bool compilation_allowed_; | 878 bool compilation_allowed_; |
| 869 | 879 |
| 870 // TODO(23153): Move this out of Isolate/Thread. | 880 // TODO(23153): Move this out of Isolate/Thread. |
| 871 CHA* cha_; | 881 CHA* cha_; |
| 872 | 882 |
| 873 // Isolate list next pointer. | 883 // Isolate list next pointer. |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1075 uint8_t* serialized_message_; | 1085 uint8_t* serialized_message_; |
| 1076 intptr_t serialized_message_len_; | 1086 intptr_t serialized_message_len_; |
| 1077 Isolate::Flags isolate_flags_; | 1087 Isolate::Flags isolate_flags_; |
| 1078 bool paused_; | 1088 bool paused_; |
| 1079 bool errors_are_fatal_; | 1089 bool errors_are_fatal_; |
| 1080 }; | 1090 }; |
| 1081 | 1091 |
| 1082 } // namespace dart | 1092 } // namespace dart |
| 1083 | 1093 |
| 1084 #endif // VM_ISOLATE_H_ | 1094 #endif // VM_ISOLATE_H_ |
| OLD | NEW |