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_H_ | 5 #ifndef V8_DEBUG_H_ |
6 #define V8_DEBUG_H_ | 6 #define V8_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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 void PrepareForBreakPoints(); | 474 void PrepareForBreakPoints(); |
475 | 475 |
476 // Returns whether the operation succeeded. Compilation can only be triggered | 476 // Returns whether the operation succeeded. Compilation can only be triggered |
477 // if a valid closure is passed as the second argument, otherwise the shared | 477 // if a valid closure is passed as the second argument, otherwise the shared |
478 // function needs to be compiled already. | 478 // function needs to be compiled already. |
479 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, | 479 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, |
480 Handle<JSFunction> function); | 480 Handle<JSFunction> function); |
481 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); | 481 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); |
482 static bool HasDebugInfo(Handle<SharedFunctionInfo> shared); | 482 static bool HasDebugInfo(Handle<SharedFunctionInfo> shared); |
483 | 483 |
484 template <typename C> | |
485 bool CompileToRevealInnerFunctions(C* compilable); | |
486 | |
487 // This function is used in FunctionNameUsing* tests. | 484 // This function is used in FunctionNameUsing* tests. |
488 Handle<Object> FindSharedFunctionInfoInScript(Handle<Script> script, | 485 Handle<Object> FindSharedFunctionInfoInScript(Handle<Script> script, |
489 int position); | 486 int position); |
490 | 487 |
491 // Returns true if the current stub call is patched to call the debugger. | 488 // Returns true if the current stub call is patched to call the debugger. |
492 static bool IsDebugBreak(Address addr); | 489 static bool IsDebugBreak(Address addr); |
493 | 490 |
494 static Handle<Object> GetSourceBreakLocations( | 491 static Handle<Object> GetSourceBreakLocations( |
495 Handle<SharedFunctionInfo> shared, | 492 Handle<SharedFunctionInfo> shared, |
496 BreakPositionAlignment position_aligment); | 493 BreakPositionAlignment position_aligment); |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 // several frames above. | 823 // several frames above. |
827 // There is no calling conventions here, because it never actually gets | 824 // There is no calling conventions here, because it never actually gets |
828 // called, it only gets returned to. | 825 // called, it only gets returned to. |
829 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); | 826 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); |
830 }; | 827 }; |
831 | 828 |
832 | 829 |
833 } } // namespace v8::internal | 830 } } // namespace v8::internal |
834 | 831 |
835 #endif // V8_DEBUG_H_ | 832 #endif // V8_DEBUG_H_ |
OLD | NEW |