| 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 RUNTIME_VM_ISOLATE_H_ | 5 #ifndef RUNTIME_VM_ISOLATE_H_ |
| 6 #define RUNTIME_VM_ISOLATE_H_ | 6 #define RUNTIME_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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 } | 210 } |
| 211 | 211 |
| 212 Thread* mutator_thread() const; | 212 Thread* mutator_thread() const; |
| 213 | 213 |
| 214 // Mutator thread is not scheduled if NULL or no heap is attached | 214 // Mutator thread is not scheduled if NULL or no heap is attached |
| 215 // to it. The latter only occurs when the mutator thread object | 215 // to it. The latter only occurs when the mutator thread object |
| 216 // is unscheduled by the isolate (or never scheduled). | 216 // is unscheduled by the isolate (or never scheduled). |
| 217 bool IsMutatorThreadScheduled() { return scheduled_mutator_thread_ != NULL; } | 217 bool IsMutatorThreadScheduled() { return scheduled_mutator_thread_ != NULL; } |
| 218 | 218 |
| 219 const char* name() const { return name_; } | 219 const char* name() const { return name_; } |
| 220 | 220 void set_name(const char* name); |
| 221 #if !defined(PRODUCT) | |
| 222 const char* debugger_name() const { return debugger_name_; } | |
| 223 void set_debugger_name(const char* name); | |
| 224 #endif // !defined(PRODUCT) | |
| 225 | 221 |
| 226 int64_t UptimeMicros() const; | 222 int64_t UptimeMicros() const; |
| 227 | 223 |
| 228 Dart_Port main_port() const { return main_port_; } | 224 Dart_Port main_port() const { return main_port_; } |
| 229 void set_main_port(Dart_Port port) { | 225 void set_main_port(Dart_Port port) { |
| 230 ASSERT(main_port_ == 0); // Only set main port once. | 226 ASSERT(main_port_ == 0); // Only set main port once. |
| 231 main_port_ = port; | 227 main_port_ = port; |
| 232 } | 228 } |
| 233 Dart_Port origin_id() const { return origin_id_; } | 229 Dart_Port origin_id() const { return origin_id_; } |
| 234 void set_origin_id(Dart_Port id) { | 230 void set_origin_id(Dart_Port id) { |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 class UseOsrBit : public BitField<uint32_t, bool, kUseOsrBit, 1> {}; | 842 class UseOsrBit : public BitField<uint32_t, bool, kUseOsrBit, 1> {}; |
| 847 uint32_t isolate_flags_; | 843 uint32_t isolate_flags_; |
| 848 | 844 |
| 849 // Background compilation. | 845 // Background compilation. |
| 850 int16_t background_compiler_disabled_depth_; | 846 int16_t background_compiler_disabled_depth_; |
| 851 BackgroundCompiler* background_compiler_; | 847 BackgroundCompiler* background_compiler_; |
| 852 | 848 |
| 853 // Fields that aren't needed in a product build go here with boolean flags at | 849 // Fields that aren't needed in a product build go here with boolean flags at |
| 854 // the top. | 850 // the top. |
| 855 #if !defined(PRODUCT) | 851 #if !defined(PRODUCT) |
| 856 char* debugger_name_; | |
| 857 Debugger* debugger_; | 852 Debugger* debugger_; |
| 858 int64_t last_resume_timestamp_; | 853 int64_t last_resume_timestamp_; |
| 859 | 854 |
| 860 // Timestamps of last operation via service. | 855 // Timestamps of last operation via service. |
| 861 int64_t last_allocationprofile_accumulator_reset_timestamp_; | 856 int64_t last_allocationprofile_accumulator_reset_timestamp_; |
| 862 int64_t last_allocationprofile_gc_timestamp_; | 857 int64_t last_allocationprofile_gc_timestamp_; |
| 863 | 858 |
| 864 VMTagCounters vm_tag_counters_; | 859 VMTagCounters vm_tag_counters_; |
| 865 | 860 |
| 866 // We use 6 list entries for each pending service extension calls. | 861 // We use 6 list entries for each pending service extension calls. |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 intptr_t* spawn_count_; | 1109 intptr_t* spawn_count_; |
| 1115 | 1110 |
| 1116 Dart_IsolateFlags isolate_flags_; | 1111 Dart_IsolateFlags isolate_flags_; |
| 1117 bool paused_; | 1112 bool paused_; |
| 1118 bool errors_are_fatal_; | 1113 bool errors_are_fatal_; |
| 1119 }; | 1114 }; |
| 1120 | 1115 |
| 1121 } // namespace dart | 1116 } // namespace dart |
| 1122 | 1117 |
| 1123 #endif // RUNTIME_VM_ISOLATE_H_ | 1118 #endif // RUNTIME_VM_ISOLATE_H_ |
| OLD | NEW |