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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
403 StackFrame::Id frame_id); | 403 StackFrame::Id frame_id); |
404 void ClearStepping(); | 404 void ClearStepping(); |
405 void ClearStepOut(); | 405 void ClearStepOut(); |
406 bool IsStepping() { return thread_local_.step_count_ > 0; } | 406 bool IsStepping() { return thread_local_.step_count_ > 0; } |
407 bool StepNextContinue(BreakLocationIterator* break_location_iterator, | 407 bool StepNextContinue(BreakLocationIterator* break_location_iterator, |
408 JavaScriptFrame* frame); | 408 JavaScriptFrame* frame); |
409 bool StepInActive() { return thread_local_.step_into_fp_ != 0; } | 409 bool StepInActive() { return thread_local_.step_into_fp_ != 0; } |
410 void HandleStepIn(Handle<Object> function_obj, Handle<Object> holder, | 410 void HandleStepIn(Handle<Object> function_obj, Handle<Object> holder, |
411 Address fp, bool is_constructor); | 411 Address fp, bool is_constructor); |
412 bool StepOutActive() { return thread_local_.step_out_fp_ != 0; } | 412 bool StepOutActive() { return thread_local_.step_out_fp_ != 0; } |
413 StepAction LastStepAction() { return thread_local_.last_step_action_; } | |
Yang
2014/11/18 11:46:39
I'm curious why StepInActive is no longer sufficie
aandrey
2014/11/18 11:52:24
A StepIn action may not necessarily lead to StepIn
| |
413 | 414 |
414 // Purge all code objects that have no debug break slots. | 415 // Purge all code objects that have no debug break slots. |
415 void PrepareForBreakPoints(); | 416 void PrepareForBreakPoints(); |
416 | 417 |
417 // Returns whether the operation succeeded. Compilation can only be triggered | 418 // Returns whether the operation succeeded. Compilation can only be triggered |
418 // if a valid closure is passed as the second argument, otherwise the shared | 419 // if a valid closure is passed as the second argument, otherwise the shared |
419 // function needs to be compiled already. | 420 // function needs to be compiled already. |
420 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, | 421 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, |
421 Handle<JSFunction> function); | 422 Handle<JSFunction> function); |
422 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); | 423 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
750 // several frames above. | 751 // several frames above. |
751 // There is no calling conventions here, because it never actually gets | 752 // There is no calling conventions here, because it never actually gets |
752 // called, it only gets returned to. | 753 // called, it only gets returned to. |
753 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); | 754 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); |
754 }; | 755 }; |
755 | 756 |
756 | 757 |
757 } } // namespace v8::internal | 758 } } // namespace v8::internal |
758 | 759 |
759 #endif // V8_DEBUG_H_ | 760 #endif // V8_DEBUG_H_ |
OLD | NEW |