| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_DEBUG_DEBUG_H_ | 5 #ifndef V8_DEBUG_DEBUG_H_ |
| 6 #define V8_DEBUG_DEBUG_H_ | 6 #define V8_DEBUG_DEBUG_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
| 10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 Handle<Object> break_point_object, | 397 Handle<Object> break_point_object, |
| 398 int* source_position); | 398 int* source_position); |
| 399 bool SetBreakPointForScript(Handle<Script> script, | 399 bool SetBreakPointForScript(Handle<Script> script, |
| 400 Handle<Object> break_point_object, | 400 Handle<Object> break_point_object, |
| 401 int* source_position, | 401 int* source_position, |
| 402 BreakPositionAlignment alignment); | 402 BreakPositionAlignment alignment); |
| 403 void ClearBreakPoint(Handle<Object> break_point_object); | 403 void ClearBreakPoint(Handle<Object> break_point_object); |
| 404 void ClearAllBreakPoints(); | 404 void ClearAllBreakPoints(); |
| 405 void FloodWithOneShot(Handle<JSFunction> function, | 405 void FloodWithOneShot(Handle<JSFunction> function, |
| 406 BreakLocatorType type = ALL_BREAK_LOCATIONS); | 406 BreakLocatorType type = ALL_BREAK_LOCATIONS); |
| 407 void FloodHandlerWithOneShot(); | |
| 408 void ChangeBreakOnException(ExceptionBreakType type, bool enable); | 407 void ChangeBreakOnException(ExceptionBreakType type, bool enable); |
| 409 bool IsBreakOnException(ExceptionBreakType type); | 408 bool IsBreakOnException(ExceptionBreakType type); |
| 410 | 409 |
| 411 // Stepping handling. | 410 // Stepping handling. |
| 412 void PrepareStep(StepAction step_action, | 411 void PrepareStep(StepAction step_action, |
| 413 int step_count, | 412 int step_count, |
| 414 StackFrame::Id frame_id); | 413 StackFrame::Id frame_id); |
| 415 void PrepareStepIn(Handle<JSFunction> function); | 414 void PrepareStepIn(Handle<JSFunction> function); |
| 415 void PrepareStepOnThrow(); |
| 416 void ClearStepping(); | 416 void ClearStepping(); |
| 417 void ClearStepOut(); | 417 void ClearStepOut(); |
| 418 void EnableStepIn(); | 418 void EnableStepIn(); |
| 419 bool IsStepping() { return thread_local_.step_count_ > 0; } | 419 bool IsStepping() { return thread_local_.step_count_ > 0; } |
| 420 bool StepNextContinue(BreakLocation* location, JavaScriptFrame* frame); | 420 bool StepNextContinue(BreakLocation* location, JavaScriptFrame* frame); |
| 421 bool StepOutActive() { return thread_local_.step_out_fp_ != 0; } | 421 bool StepOutActive() { return thread_local_.step_out_fp_ != 0; } |
| 422 | 422 |
| 423 void GetStepinPositions(JavaScriptFrame* frame, StackFrame::Id frame_id, | 423 void GetStepinPositions(JavaScriptFrame* frame, StackFrame::Id frame_id, |
| 424 List<int>* results_out); | 424 List<int>* results_out); |
| 425 | 425 |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 static void PatchDebugBreakSlot(Isolate* isolate, Address pc, | 758 static void PatchDebugBreakSlot(Isolate* isolate, Address pc, |
| 759 Handle<Code> code); | 759 Handle<Code> code); |
| 760 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 760 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
| 761 }; | 761 }; |
| 762 | 762 |
| 763 | 763 |
| 764 } // namespace internal | 764 } // namespace internal |
| 765 } // namespace v8 | 765 } // namespace v8 |
| 766 | 766 |
| 767 #endif // V8_DEBUG_DEBUG_H_ | 767 #endif // V8_DEBUG_DEBUG_H_ |
| OLD | NEW |