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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 void GetStepinPositions(JavaScriptFrame* frame, StackFrame::Id frame_id, | 417 void GetStepinPositions(JavaScriptFrame* frame, StackFrame::Id frame_id, |
418 List<int>* results_out); | 418 List<int>* results_out); |
419 | 419 |
420 bool PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared); | 420 bool PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared); |
421 | 421 |
422 // Returns whether the operation succeeded. Compilation can only be triggered | 422 // Returns whether the operation succeeded. Compilation can only be triggered |
423 // if a valid closure is passed as the second argument, otherwise the shared | 423 // if a valid closure is passed as the second argument, otherwise the shared |
424 // function needs to be compiled already. | 424 // function needs to be compiled already. |
425 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, | 425 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, |
426 Handle<JSFunction> function); | 426 Handle<JSFunction> function); |
| 427 void CreateDebugInfo(Handle<SharedFunctionInfo> shared); |
427 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); | 428 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); |
428 | 429 |
429 template <typename C> | 430 template <typename C> |
430 bool CompileToRevealInnerFunctions(C* compilable); | 431 bool CompileToRevealInnerFunctions(C* compilable); |
431 | 432 |
432 // This function is used in FunctionNameUsing* tests. | 433 // This function is used in FunctionNameUsing* tests. |
433 Handle<Object> FindSharedFunctionInfoInScript(Handle<Script> script, | 434 Handle<Object> FindSharedFunctionInfoInScript(Handle<Script> script, |
434 int position); | 435 int position); |
435 | 436 |
436 // Returns true if the current stub call is patched to call the debugger. | 437 // Returns true if the current stub call is patched to call the debugger. |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 | 761 |
761 static void PatchDebugBreakSlot(Address pc, Handle<Code> code); | 762 static void PatchDebugBreakSlot(Address pc, Handle<Code> code); |
762 static void ClearDebugBreakSlot(Address pc); | 763 static void ClearDebugBreakSlot(Address pc); |
763 }; | 764 }; |
764 | 765 |
765 | 766 |
766 } // namespace internal | 767 } // namespace internal |
767 } // namespace v8 | 768 } // namespace v8 |
768 | 769 |
769 #endif // V8_DEBUG_DEBUG_H_ | 770 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |