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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 bool IsBreakOnException(ExceptionBreakType type); | 453 bool IsBreakOnException(ExceptionBreakType type); |
454 | 454 |
455 // Stepping handling. | 455 // Stepping handling. |
456 void PrepareStep(StepAction step_action); | 456 void PrepareStep(StepAction step_action); |
457 void PrepareStepIn(Handle<JSFunction> function); | 457 void PrepareStepIn(Handle<JSFunction> function); |
458 void PrepareStepOnThrow(); | 458 void PrepareStepOnThrow(); |
459 void ClearStepping(); | 459 void ClearStepping(); |
460 void ClearStepOut(); | 460 void ClearStepOut(); |
461 void EnableStepIn(); | 461 void EnableStepIn(); |
462 | 462 |
463 void GetStepinPositions(JavaScriptFrame* frame, StackFrame::Id frame_id, | |
464 List<int>* results_out); | |
465 | |
466 bool PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared); | 463 bool PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared); |
467 | 464 |
468 // Returns whether the operation succeeded. Compilation can only be triggered | 465 // Returns whether the operation succeeded. Compilation can only be triggered |
469 // if a valid closure is passed as the second argument, otherwise the shared | 466 // if a valid closure is passed as the second argument, otherwise the shared |
470 // function needs to be compiled already. | 467 // function needs to be compiled already. |
471 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, | 468 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, |
472 Handle<JSFunction> function); | 469 Handle<JSFunction> function); |
473 void CreateDebugInfo(Handle<SharedFunctionInfo> shared); | 470 void CreateDebugInfo(Handle<SharedFunctionInfo> shared); |
474 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); | 471 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); |
475 | 472 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 Handle<Code> code); | 791 Handle<Code> code); |
795 static bool DebugBreakSlotIsPatched(Address pc); | 792 static bool DebugBreakSlotIsPatched(Address pc); |
796 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 793 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
797 }; | 794 }; |
798 | 795 |
799 | 796 |
800 } // namespace internal | 797 } // namespace internal |
801 } // namespace v8 | 798 } // namespace v8 |
802 | 799 |
803 #endif // V8_DEBUG_DEBUG_H_ | 800 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |