Index: src/debug.h |
diff --git a/src/debug.h b/src/debug.h |
index 209d8db87db3a350a1c447710dfccc92e59a114d..67debc7543cfc265485c3e3db3832ce8f2489a99 100644 |
--- a/src/debug.h |
+++ b/src/debug.h |
@@ -79,6 +79,14 @@ enum BreakLocatorType { |
}; |
+// The different types of breakpoint position alignments. |
+// Must match Debug.BreakPositionAlignment in debug-debugger.js |
+enum BreakPositionAlignment { |
+ STATEMENT_ALIGNED = 0, |
+ BREAK_POSITION_ALIGNED = 1 |
+}; |
+ |
+ |
// Class for iterating through the break points in a function and changing |
// them. |
class BreakLocationIterator { |
@@ -90,7 +98,8 @@ class BreakLocationIterator { |
void Next(); |
void Next(int count); |
void FindBreakLocationFromAddress(Address pc); |
- void FindBreakLocationFromPosition(int position); |
+ void FindBreakLocationFromPosition(int position, |
+ BreakPositionAlignment alignment); |
void Reset(); |
bool Done() const; |
void SetBreakPoint(Handle<Object> break_point_object); |
@@ -241,7 +250,8 @@ class Debug { |
int* source_position); |
bool SetBreakPointForScript(Handle<Script> script, |
Handle<Object> break_point_object, |
- int* source_position); |
+ int* source_position, |
+ BreakPositionAlignment alignment); |
void ClearBreakPoint(Handle<Object> break_point_object); |
void ClearAllBreakPoints(); |
void FloodWithOneShot(Handle<JSFunction> function); |
@@ -284,7 +294,8 @@ class Debug { |
static Handle<Code> FindDebugBreak(Handle<Code> code, RelocInfo::Mode mode); |
static Handle<Object> GetSourceBreakLocations( |
- Handle<SharedFunctionInfo> shared); |
+ Handle<SharedFunctionInfo> shared, |
+ BreakPositionAlignment position_aligment); |
// Getter for the debug_context. |
inline Handle<Context> debug_context() { return debug_context_; } |