| 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 class UseOsrBit : public BitField<uint32_t, bool, kUseOsrBit, 1> {}; | 836 class UseOsrBit : public BitField<uint32_t, bool, kUseOsrBit, 1> {}; |
| 841 uint32_t isolate_flags_; | 837 uint32_t isolate_flags_; |
| 842 | 838 |
| 843 // Background compilation. | 839 // Background compilation. |
| 844 int16_t background_compiler_disabled_depth_; | 840 int16_t background_compiler_disabled_depth_; |
| 845 BackgroundCompiler* background_compiler_; | 841 BackgroundCompiler* background_compiler_; |
| 846 | 842 |
| 847 // Fields that aren't needed in a product build go here with boolean flags at | 843 // Fields that aren't needed in a product build go here with boolean flags at |
| 848 // the top. | 844 // the top. |
| 849 #if !defined(PRODUCT) | 845 #if !defined(PRODUCT) |
| 850 char* debugger_name_; | |
| 851 Debugger* debugger_; | 846 Debugger* debugger_; |
| 852 int64_t last_resume_timestamp_; | 847 int64_t last_resume_timestamp_; |
| 853 | 848 |
| 854 // Timestamps of last operation via service. | 849 // Timestamps of last operation via service. |
| 855 int64_t last_allocationprofile_accumulator_reset_timestamp_; | 850 int64_t last_allocationprofile_accumulator_reset_timestamp_; |
| 856 int64_t last_allocationprofile_gc_timestamp_; | 851 int64_t last_allocationprofile_gc_timestamp_; |
| 857 | 852 |
| 858 VMTagCounters vm_tag_counters_; | 853 VMTagCounters vm_tag_counters_; |
| 859 | 854 |
| 860 // We use 6 list entries for each pending service extension calls. | 855 // We use 6 list entries for each pending service extension calls. |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 intptr_t* spawn_count_; | 1103 intptr_t* spawn_count_; |
| 1109 | 1104 |
| 1110 Dart_IsolateFlags isolate_flags_; | 1105 Dart_IsolateFlags isolate_flags_; |
| 1111 bool paused_; | 1106 bool paused_; |
| 1112 bool errors_are_fatal_; | 1107 bool errors_are_fatal_; |
| 1113 }; | 1108 }; |
| 1114 | 1109 |
| 1115 } // namespace dart | 1110 } // namespace dart |
| 1116 | 1111 |
| 1117 #endif // RUNTIME_VM_ISOLATE_H_ | 1112 #endif // RUNTIME_VM_ISOLATE_H_ |
| OLD | NEW |