diff options
Diffstat (limited to 'src/3rdparty/v8/src/debug.h')
-rw-r--r-- | src/3rdparty/v8/src/debug.h | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/src/3rdparty/v8/src/debug.h b/src/3rdparty/v8/src/debug.h index d9c966c..150e29e 100644 --- a/src/3rdparty/v8/src/debug.h +++ b/src/3rdparty/v8/src/debug.h @@ -232,19 +232,16 @@ class Debug { void PreemptionWhileInDebugger(); void Iterate(ObjectVisitor* v); - NO_INLINE(void PutValuesOnStackAndDie(int start, - Address c_entry_fp, - Address last_fp, - Address larger_fp, - 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 +257,14 @@ class Debug { void PrepareForBreakPoints(); - // Returns whether the operation succeeded. - bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared); + // This function is used in FunctionNameUsing* tests. + Object* FindSharedFunctionInfoInScript(Handle<Script> script, int position); + + // 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); @@ -440,7 +443,8 @@ class Debug { // The top JS frame had been calling some C++ function. The return address // gets patched automatically. FRAME_DROPPED_IN_DIRECT_CALL, - FRAME_DROPPED_IN_RETURN_CALL + FRAME_DROPPED_IN_RETURN_CALL, + CURRENTLY_SET_MODE }; void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id, @@ -789,7 +793,6 @@ class Debugger { }; void OnAfterCompile(Handle<Script> script, AfterCompileFlags after_compile_flags); - void OnNewFunction(Handle<JSFunction> fun); void OnScriptCollected(int id); void ProcessDebugEvent(v8::DebugEvent event, Handle<JSObject> event_data, @@ -871,6 +874,8 @@ class Debugger { bool compiling_natives() const { return compiling_natives_; } void set_loading_debugger(bool v) { is_loading_debugger_ = v; } bool is_loading_debugger() const { return is_loading_debugger_; } + void set_live_edit_enabled(bool v) { live_edit_enabled_ = v; } + bool live_edit_enabled() const { return live_edit_enabled_; } void set_force_debugger_active(bool force_debugger_active) { force_debugger_active_ = force_debugger_active; } @@ -899,6 +904,7 @@ class Debugger { Handle<Object> event_listener_data_; bool compiling_natives_; // Are we compiling natives? bool is_loading_debugger_; // Are we loading the debugger? + bool live_edit_enabled_; // Enable LiveEdit. bool never_unload_debugger_; // Can we unload the debugger? bool force_debugger_active_; // Activate debugger without event listeners. v8::Debug::MessageHandler2 message_handler_; |