OLD | NEW |
---|---|
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_DEBUGGER_H_ | 5 #ifndef VM_DEBUGGER_H_ |
6 #define VM_DEBUGGER_H_ | 6 #define VM_DEBUGGER_H_ |
7 | 7 |
8 #include "include/dart_tools_api.h" | 8 #include "include/dart_tools_api.h" |
9 | 9 |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
644 const String& prefix, | 644 const String& prefix, |
645 bool include_private_fields); | 645 bool include_private_fields); |
646 | 646 |
647 // Handles any events which pause vm execution. Breakpoints, | 647 // Handles any events which pause vm execution. Breakpoints, |
648 // interrupts, etc. | 648 // interrupts, etc. |
649 void Pause(DebuggerEvent* event); | 649 void Pause(DebuggerEvent* event); |
650 | 650 |
651 void HandleSteppingRequest(DebuggerStackTrace* stack_trace); | 651 void HandleSteppingRequest(DebuggerStackTrace* stack_trace); |
652 | 652 |
653 Zone* zone() const { | 653 Zone* zone() const { |
654 ASSERT(isolate_->MutatorThreadIsCurrentThread()); | |
srdjan
2015/10/26 19:21:41
Why did you remove this assert? We do not want to
siva
2015/10/26 19:56:21
current_zone has the same assert
(Thread::Current(
| |
655 return isolate_->current_zone(); | 654 return isolate_->current_zone(); |
656 } | 655 } |
657 | 656 |
658 Isolate* isolate_; | 657 Isolate* isolate_; |
659 Dart_Port isolate_id_; // A unique ID for the isolate in the debugger. | 658 Dart_Port isolate_id_; // A unique ID for the isolate in the debugger. |
660 bool initialized_; | 659 bool initialized_; |
661 | 660 |
662 // ID number generator. | 661 // ID number generator. |
663 intptr_t next_id_; | 662 intptr_t next_id_; |
664 | 663 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
697 | 696 |
698 friend class Isolate; | 697 friend class Isolate; |
699 friend class BreakpointLocation; | 698 friend class BreakpointLocation; |
700 DISALLOW_COPY_AND_ASSIGN(Debugger); | 699 DISALLOW_COPY_AND_ASSIGN(Debugger); |
701 }; | 700 }; |
702 | 701 |
703 | 702 |
704 } // namespace dart | 703 } // namespace dart |
705 | 704 |
706 #endif // VM_DEBUGGER_H_ | 705 #endif // VM_DEBUGGER_H_ |
OLD | NEW |