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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 return mutator_thread_ != NULL; | 163 return mutator_thread_ != NULL; |
164 } | 164 } |
165 bool MutatorThreadIsCurrentThread() { | 165 bool MutatorThreadIsCurrentThread() { |
166 return mutator_thread_ == Thread::Current(); | 166 return mutator_thread_ == Thread::Current(); |
167 } | 167 } |
168 | 168 |
169 const char* name() const { return name_; } | 169 const char* name() const { return name_; } |
170 const char* debugger_name() const { return debugger_name_; } | 170 const char* debugger_name() const { return debugger_name_; } |
171 void set_debugger_name(const char* name); | 171 void set_debugger_name(const char* name); |
172 | 172 |
173 // TODO(koda): Move to Thread. | 173 bool ShouldLog() const; |
174 class Log* Log() const; | |
175 | 174 |
176 int64_t start_time() const { return start_time_; } | 175 int64_t start_time() const { return start_time_; } |
177 | 176 |
178 Dart_Port main_port() const { return main_port_; } | 177 Dart_Port main_port() const { return main_port_; } |
179 void set_main_port(Dart_Port port) { | 178 void set_main_port(Dart_Port port) { |
180 ASSERT(main_port_ == 0); // Only set main port once. | 179 ASSERT(main_port_ == 0); // Only set main port once. |
181 main_port_ = port; | 180 main_port_ = port; |
182 } | 181 } |
183 Dart_Port origin_id() const { return origin_id_; } | 182 Dart_Port origin_id() const { return origin_id_; } |
184 void set_origin_id(Dart_Port id) { | 183 void set_origin_id(Dart_Port id) { |
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 uint8_t* serialized_message_; | 1120 uint8_t* serialized_message_; |
1122 intptr_t serialized_message_len_; | 1121 intptr_t serialized_message_len_; |
1123 Isolate::Flags isolate_flags_; | 1122 Isolate::Flags isolate_flags_; |
1124 bool paused_; | 1123 bool paused_; |
1125 bool errors_are_fatal_; | 1124 bool errors_are_fatal_; |
1126 }; | 1125 }; |
1127 | 1126 |
1128 } // namespace dart | 1127 } // namespace dart |
1129 | 1128 |
1130 #endif // VM_ISOLATE_H_ | 1129 #endif // VM_ISOLATE_H_ |
OLD | NEW |