| 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/base_isolate.h" | 10 #include "vm/base_isolate.h" |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 static bool IsDeoptBefore(intptr_t deopt_id) { | 360 static bool IsDeoptBefore(intptr_t deopt_id) { |
| 361 return (deopt_id % kDeoptIdStep) == kDeoptIdBeforeOffset; | 361 return (deopt_id % kDeoptIdStep) == kDeoptIdBeforeOffset; |
| 362 } | 362 } |
| 363 | 363 |
| 364 static bool IsDeoptAfter(intptr_t deopt_id) { | 364 static bool IsDeoptAfter(intptr_t deopt_id) { |
| 365 return (deopt_id % kDeoptIdStep) == kDeoptIdAfterOffset; | 365 return (deopt_id % kDeoptIdStep) == kDeoptIdAfterOffset; |
| 366 } | 366 } |
| 367 | 367 |
| 368 Mutex* mutex() const { return mutex_; } | 368 Mutex* mutex() const { return mutex_; } |
| 369 | 369 |
| 370 Debugger* debugger() const { return debugger_; } | 370 Debugger* debugger() const { |
| 371 ASSERT(debugger_ != NULL); |
| 372 return debugger_; |
| 373 } |
| 371 | 374 |
| 372 void set_single_step(bool value) { single_step_ = value; } | 375 void set_single_step(bool value) { single_step_ = value; } |
| 373 bool single_step() const { return single_step_; } | 376 bool single_step() const { return single_step_; } |
| 374 static intptr_t single_step_offset() { | 377 static intptr_t single_step_offset() { |
| 375 return OFFSET_OF(Isolate, single_step_); | 378 return OFFSET_OF(Isolate, single_step_); |
| 376 } | 379 } |
| 377 | 380 |
| 378 void set_has_compiled(bool value) { has_compiled_ = value; } | 381 void set_has_compiled(bool value) { has_compiled_ = value; } |
| 379 bool has_compiled() const { return has_compiled_; } | 382 bool has_compiled() const { return has_compiled_; } |
| 380 | 383 |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 intptr_t serialized_args_len_; | 1016 intptr_t serialized_args_len_; |
| 1014 uint8_t* serialized_message_; | 1017 uint8_t* serialized_message_; |
| 1015 intptr_t serialized_message_len_; | 1018 intptr_t serialized_message_len_; |
| 1016 Isolate::Flags isolate_flags_; | 1019 Isolate::Flags isolate_flags_; |
| 1017 bool paused_; | 1020 bool paused_; |
| 1018 }; | 1021 }; |
| 1019 | 1022 |
| 1020 } // namespace dart | 1023 } // namespace dart |
| 1021 | 1024 |
| 1022 #endif // VM_ISOLATE_H_ | 1025 #endif // VM_ISOLATE_H_ |
| OLD | NEW |