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 |
484 // This function is used in FunctionNameUsing* tests. | 487 // This function is used in FunctionNameUsing* tests. |
485 Handle<Object> FindSharedFunctionInfoInScript(Handle<Script> script, | 488 Handle<Object> FindSharedFunctionInfoInScript(Handle<Script> script, |
486 int position); | 489 int position); |
487 | 490 |
488 // Returns true if the current stub call is patched to call the debugger. | 491 // Returns true if the current stub call is patched to call the debugger. |
489 static bool IsDebugBreak(Address addr); | 492 static bool IsDebugBreak(Address addr); |
490 | 493 |
491 static Handle<Object> GetSourceBreakLocations( | 494 static Handle<Object> GetSourceBreakLocations( |
492 Handle<SharedFunctionInfo> shared, | 495 Handle<SharedFunctionInfo> shared, |
493 BreakPositionAlignment position_aligment); | 496 BreakPositionAlignment position_aligment); |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 // several frames above. | 826 // several frames above. |
824 // There is no calling conventions here, because it never actually gets | 827 // There is no calling conventions here, because it never actually gets |
825 // called, it only gets returned to. | 828 // called, it only gets returned to. |
826 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); | 829 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); |
827 }; | 830 }; |
828 | 831 |
829 | 832 |
830 } } // namespace v8::internal | 833 } } // namespace v8::internal |
831 | 834 |
832 #endif // V8_DEBUG_H_ | 835 #endif // V8_DEBUG_H_ |
OLD | NEW |