Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: runtime/vm/debugger.h

Issue 1384403002: Preparation for moving reusable handles to thread and more cleanups: isolate -> thread based handle… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 }; 446 };
447 447
448 448
449 class Debugger { 449 class Debugger {
450 public: 450 public:
451 typedef void EventHandler(DebuggerEvent* event); 451 typedef void EventHandler(DebuggerEvent* event);
452 452
453 Debugger(); 453 Debugger();
454 ~Debugger(); 454 ~Debugger();
455 455
456 void Initialize(Isolate* isolate); 456 void Initialize(Thread* thread);
457 void NotifyIsolateCreated(); 457 void NotifyIsolateCreated();
458 void Shutdown(); 458 void Shutdown();
459 459
460 void NotifyCompilation(const Function& func); 460 void NotifyCompilation(const Function& func);
461 void NotifyDoneLoading(); 461 void NotifyDoneLoading();
462 462
463 RawFunction* ResolveFunction(const Library& library, 463 RawFunction* ResolveFunction(const Library& library,
464 const String& class_name, 464 const String& class_name,
465 const String& function_name); 465 const String& function_name);
466 466
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 const Library& lib, 643 const Library& lib,
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 Thread* thread_;
653 Isolate* isolate_; 654 Isolate* isolate_;
654 Dart_Port isolate_id_; // A unique ID for the isolate in the debugger. 655 Dart_Port isolate_id_; // A unique ID for the isolate in the debugger.
655 bool initialized_; 656 bool initialized_;
656 657
657 // ID number generator. 658 // ID number generator.
658 intptr_t next_id_; 659 intptr_t next_id_;
659 660
660 BreakpointLocation* latent_locations_; 661 BreakpointLocation* latent_locations_;
661 BreakpointLocation* breakpoint_locations_; 662 BreakpointLocation* breakpoint_locations_;
662 CodeBreakpoint* code_breakpoints_; 663 CodeBreakpoint* code_breakpoints_;
(...skipping 29 matching lines...) Expand all
692 693
693 friend class Isolate; 694 friend class Isolate;
694 friend class BreakpointLocation; 695 friend class BreakpointLocation;
695 DISALLOW_COPY_AND_ASSIGN(Debugger); 696 DISALLOW_COPY_AND_ASSIGN(Debugger);
696 }; 697 };
697 698
698 699
699 } // namespace dart 700 } // namespace dart
700 701
701 #endif // VM_DEBUGGER_H_ 702 #endif // VM_DEBUGGER_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/debugger.cc » ('j') | runtime/vm/gc_marker.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698