Index: src/debug.h |
diff --git a/src/debug.h b/src/debug.h |
index d9c966c37f45b5493ea6a7ad6ae76901bacffc68..c7c4b55489828b930ac0c768345c4114bc5e0d27 100644 |
--- a/src/debug.h |
+++ b/src/debug.h |
@@ -239,12 +239,15 @@ class Debug { |
int count, |
int end)); |
Object* Break(Arguments args); |
- void SetBreakPoint(Handle<SharedFunctionInfo> shared, |
+ void SetBreakPoint(Handle<JSFunction> function, |
Handle<Object> break_point_object, |
int* source_position); |
+ bool SetBreakPointForScript(Handle<Script> script, |
+ Handle<Object> break_point_object, |
+ int* source_position); |
void ClearBreakPoint(Handle<Object> break_point_object); |
void ClearAllBreakPoints(); |
- void FloodWithOneShot(Handle<SharedFunctionInfo> shared); |
+ void FloodWithOneShot(Handle<JSFunction> function); |
void FloodBoundFunctionWithOneShot(Handle<JSFunction> function); |
void FloodHandlerWithOneShot(); |
void ChangeBreakOnException(ExceptionBreakType type, bool enable); |
@@ -260,8 +263,11 @@ class Debug { |
void PrepareForBreakPoints(); |
- // Returns whether the operation succeeded. |
- bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared); |
+ // Returns whether the operation succeeded. Compilation can only be triggered |
+ // if a valid closure is passed as the second argument, otherwise the shared |
+ // function needs to be compiled already. |
+ bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, |
+ Handle<JSFunction> function); |
// Returns true if the current stub call is patched to call the debugger. |
static bool IsDebugBreak(Address addr); |