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

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

Issue 403643002: One more iteration of PcDescriptor iterator improvement: do not copy record but access individual … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/coverage.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_debugger_api.h" 8 #include "include/dart_debugger_api.h"
9 9
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 DISALLOW_COPY_AND_ASSIGN(SourceBreakpoint); 73 DISALLOW_COPY_AND_ASSIGN(SourceBreakpoint);
74 }; 74 };
75 75
76 76
77 // CodeBreakpoint represents a location in compiled code. There may be 77 // CodeBreakpoint represents a location in compiled code. There may be
78 // more than one CodeBreakpoint for one SourceBreakpoint, e.g. when a 78 // more than one CodeBreakpoint for one SourceBreakpoint, e.g. when a
79 // function gets compiled as a regular function and as a closure. 79 // function gets compiled as a regular function and as a closure.
80 class CodeBreakpoint { 80 class CodeBreakpoint {
81 public: 81 public:
82 CodeBreakpoint(const Code& code, 82 CodeBreakpoint(const Code& code,
83 const RawPcDescriptors::PcDescriptorRec& rec); 83 intptr_t token_pos,
84 uword pc,
85 RawPcDescriptors::Kind kind);
84 ~CodeBreakpoint(); 86 ~CodeBreakpoint();
85 87
86 RawFunction* function() const; 88 RawFunction* function() const;
87 uword pc() const { return pc_; } 89 uword pc() const { return pc_; }
88 intptr_t token_pos() const { return token_pos_; } 90 intptr_t token_pos() const { return token_pos_; }
89 bool IsInternal() const { return src_bpt_ == NULL; } 91 bool IsInternal() const { return src_bpt_ == NULL; }
90 92
91 RawScript* SourceCode(); 93 RawScript* SourceCode();
92 RawString* SourceUrl(); 94 RawString* SourceUrl();
93 intptr_t LineNumber(); 95 intptr_t LineNumber();
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 548
547 friend class Isolate; 549 friend class Isolate;
548 friend class SourceBreakpoint; 550 friend class SourceBreakpoint;
549 DISALLOW_COPY_AND_ASSIGN(Debugger); 551 DISALLOW_COPY_AND_ASSIGN(Debugger);
550 }; 552 };
551 553
552 554
553 } // namespace dart 555 } // namespace dart
554 556
555 #endif // VM_DEBUGGER_H_ 557 #endif // VM_DEBUGGER_H_
OLDNEW
« no previous file with comments | « runtime/vm/coverage.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698