| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 // Marks all libraries as loaded. | 305 // Marks all libraries as loaded. |
| 306 void DoneLoading(); | 306 void DoneLoading(); |
| 307 | 307 |
| 308 bool MakeRunnable(); | 308 bool MakeRunnable(); |
| 309 void Run(); | 309 void Run(); |
| 310 | 310 |
| 311 MessageHandler* message_handler() const { return message_handler_; } | 311 MessageHandler* message_handler() const { return message_handler_; } |
| 312 void set_message_handler(MessageHandler* value) { message_handler_ = value; } | 312 void set_message_handler(MessageHandler* value) { message_handler_ = value; } |
| 313 | 313 |
| 314 bool is_runnable() const { return is_runnable_; } | 314 bool is_runnable() const { return is_runnable_; } |
| 315 void set_is_runnable(bool value) { is_runnable_ = value; } | 315 void set_is_runnable(bool value) { |
| 316 is_runnable_ = value; |
| 317 if (is_runnable_) { |
| 318 set_last_resume_timestamp(); |
| 319 } |
| 320 } |
| 316 | 321 |
| 317 IsolateSpawnState* spawn_state() const { return spawn_state_; } | 322 IsolateSpawnState* spawn_state() const { return spawn_state_; } |
| 318 void set_spawn_state(IsolateSpawnState* value) { spawn_state_ = value; } | 323 void set_spawn_state(IsolateSpawnState* value) { spawn_state_ = value; } |
| 319 | 324 |
| 320 Mutex* mutex() const { return mutex_; } | 325 Mutex* mutex() const { return mutex_; } |
| 321 Mutex* symbols_mutex() const { return symbols_mutex_; } | 326 Mutex* symbols_mutex() const { return symbols_mutex_; } |
| 322 Mutex* type_canonicalization_mutex() const { | 327 Mutex* type_canonicalization_mutex() const { |
| 323 return type_canonicalization_mutex_; | 328 return type_canonicalization_mutex_; |
| 324 } | 329 } |
| 325 Mutex* constant_canonicalization_mutex() const { | 330 Mutex* constant_canonicalization_mutex() const { |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 intptr_t* spawn_count_; | 1030 intptr_t* spawn_count_; |
| 1026 | 1031 |
| 1027 Dart_IsolateFlags isolate_flags_; | 1032 Dart_IsolateFlags isolate_flags_; |
| 1028 bool paused_; | 1033 bool paused_; |
| 1029 bool errors_are_fatal_; | 1034 bool errors_are_fatal_; |
| 1030 }; | 1035 }; |
| 1031 | 1036 |
| 1032 } // namespace dart | 1037 } // namespace dart |
| 1033 | 1038 |
| 1034 #endif // VM_ISOLATE_H_ | 1039 #endif // VM_ISOLATE_H_ |
| OLD | NEW |