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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 void PrepareStepIn(Handle<JSFunction> function); | 457 void PrepareStepIn(Handle<JSFunction> function); |
458 void PrepareStepInSuspendedGenerator(); | 458 void PrepareStepInSuspendedGenerator(); |
459 void PrepareStepOnThrow(); | 459 void PrepareStepOnThrow(); |
460 void ClearStepping(); | 460 void ClearStepping(); |
461 void ClearStepOut(); | 461 void ClearStepOut(); |
462 | 462 |
463 bool PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared); | 463 bool PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared); |
464 bool GetPossibleBreakpoints(Handle<Script> script, int start_position, | 464 bool GetPossibleBreakpoints(Handle<Script> script, int start_position, |
465 int end_position, std::set<int>* positions); | 465 int end_position, std::set<int>* positions); |
466 | 466 |
467 void RecordAsyncFunction(Handle<JSGeneratorObject> generator_object); | 467 void RecordGenerator(Handle<JSGeneratorObject> generator_object); |
468 | 468 |
469 // Returns whether the operation succeeded. Compilation can only be triggered | 469 // Returns whether the operation succeeded. Compilation can only be triggered |
470 // if a valid closure is passed as the second argument, otherwise the shared | 470 // if a valid closure is passed as the second argument, otherwise the shared |
471 // function needs to be compiled already. | 471 // function needs to be compiled already. |
472 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, | 472 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, |
473 Handle<JSFunction> function); | 473 Handle<JSFunction> function); |
474 void CreateDebugInfo(Handle<SharedFunctionInfo> shared); | 474 void CreateDebugInfo(Handle<SharedFunctionInfo> shared); |
475 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); | 475 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); |
476 | 476 |
477 template <typename C> | 477 template <typename C> |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 Handle<Code> code); | 826 Handle<Code> code); |
827 static bool DebugBreakSlotIsPatched(Address pc); | 827 static bool DebugBreakSlotIsPatched(Address pc); |
828 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 828 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
829 }; | 829 }; |
830 | 830 |
831 | 831 |
832 } // namespace internal | 832 } // namespace internal |
833 } // namespace v8 | 833 } // namespace v8 |
834 | 834 |
835 #endif // V8_DEBUG_DEBUG_H_ | 835 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |