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

Unified Diff: runtime/vm/debugger.h

Issue 15000005: Allow breakpoints on one-liner functions (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger.h
===================================================================
--- runtime/vm/debugger.h (revision 22797)
+++ runtime/vm/debugger.h (working copy)
@@ -28,6 +28,7 @@
RawFunction* function() const { return function_; }
intptr_t token_pos() const { return token_pos_; }
+ void set_token_pos(intptr_t value) { token_pos_ = value; }
intptr_t id() const { return id_; }
RawScript* SourceCode();
@@ -49,7 +50,7 @@
const intptr_t id_;
RawFunction* function_;
- const intptr_t token_pos_;
+ intptr_t token_pos_;
intptr_t line_number_;
bool is_enabled_;
@@ -317,6 +318,9 @@
kStepOut
};
+ intptr_t ResolveBreakpointPos(const Function& func,
+ intptr_t first_token_pos,
+ intptr_t last_token_pos);
void DeoptimizeWorld();
void InstrumentForStepping(const Function& target_function);
SourceBreakpoint* SetBreakpoint(const Function& target_function,
@@ -328,10 +332,9 @@
void RegisterCodeBreakpoint(CodeBreakpoint* bpt);
SourceBreakpoint* GetSourceBreakpoint(const Function& func,
intptr_t token_pos);
- CodeBreakpoint* MakeCodeBreakpoint(const Function& func,
- intptr_t first_token_pos,
- intptr_t last_token_pos);
-
+ void MakeCodeBreakpointsAt(const Function& func,
+ intptr_t token_pos,
+ SourceBreakpoint* bpt);
// Returns NULL if no breakpoint exists for the given address.
CodeBreakpoint* GetCodeBreakpoint(uword breakpoint_address);
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698