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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ChangeBreakOnException(ExceptionBreakType type, bool enable); | 407 void ChangeBreakOnException(ExceptionBreakType type, bool enable); |
408 bool IsBreakOnException(ExceptionBreakType type); | 408 bool IsBreakOnException(ExceptionBreakType type); |
409 | 409 |
410 // Stepping handling. | 410 // Stepping handling. |
411 void PrepareStep(StepAction step_action, | 411 void PrepareStep(StepAction step_action, int step_count); |
412 int step_count, | |
413 StackFrame::Id frame_id); | |
414 void PrepareStepIn(Handle<JSFunction> function); | 412 void PrepareStepIn(Handle<JSFunction> function); |
415 void PrepareStepOnThrow(); | 413 void PrepareStepOnThrow(); |
416 void ClearStepping(); | 414 void ClearStepping(); |
417 void ClearStepOut(); | 415 void ClearStepOut(); |
418 void EnableStepIn(); | 416 void EnableStepIn(); |
419 bool IsStepping() { return thread_local_.step_count_ > 0; } | 417 bool IsStepping() { return thread_local_.step_count_ > 0; } |
420 bool StepNextContinue(BreakLocation* location, JavaScriptFrame* frame); | 418 bool StepNextContinue(BreakLocation* location, JavaScriptFrame* frame); |
421 bool StepOutActive() { return thread_local_.step_out_fp_ != 0; } | 419 bool StepOutActive() { return thread_local_.step_out_fp_ != 0; } |
422 | 420 |
423 void GetStepinPositions(JavaScriptFrame* frame, StackFrame::Id frame_id, | 421 void GetStepinPositions(JavaScriptFrame* frame, StackFrame::Id frame_id, |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 static void PatchDebugBreakSlot(Isolate* isolate, Address pc, | 756 static void PatchDebugBreakSlot(Isolate* isolate, Address pc, |
759 Handle<Code> code); | 757 Handle<Code> code); |
760 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 758 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
761 }; | 759 }; |
762 | 760 |
763 | 761 |
764 } // namespace internal | 762 } // namespace internal |
765 } // namespace v8 | 763 } // namespace v8 |
766 | 764 |
767 #endif // V8_DEBUG_DEBUG_H_ | 765 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |