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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 | 440 |
441 // Check whether this frame is just about to return. | 441 // Check whether this frame is just about to return. |
442 bool IsBreakAtReturn(JavaScriptFrame* frame); | 442 bool IsBreakAtReturn(JavaScriptFrame* frame); |
443 | 443 |
444 // Support for LiveEdit | 444 // Support for LiveEdit |
445 void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id, | 445 void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id, |
446 LiveEdit::FrameDropMode mode, | 446 LiveEdit::FrameDropMode mode, |
447 Object** restarter_frame_function_pointer); | 447 Object** restarter_frame_function_pointer); |
448 | 448 |
449 // Passed to MakeWeak. | 449 // Passed to MakeWeak. |
450 static void HandleWeakDebugInfo( | 450 static void HandlePhantomDebugInfo( |
451 const v8::WeakCallbackData<v8::Value, void>& data); | 451 const PhantomCallbackData<DebugInfoListNode>& data); |
452 | 452 |
453 // Threading support. | 453 // Threading support. |
454 char* ArchiveDebug(char* to); | 454 char* ArchiveDebug(char* to); |
455 char* RestoreDebug(char* from); | 455 char* RestoreDebug(char* from); |
456 static int ArchiveSpacePerThread(); | 456 static int ArchiveSpacePerThread(); |
457 void FreeThreadResources() { } | 457 void FreeThreadResources() { } |
458 | 458 |
459 // Record function from which eval was called. | 459 // Record function from which eval was called. |
460 static void RecordEvalCaller(Handle<Script> script); | 460 static void RecordEvalCaller(Handle<Script> script); |
461 | 461 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 void InvokeMessageHandler(MessageImpl message); | 565 void InvokeMessageHandler(MessageImpl message); |
566 | 566 |
567 static bool CompileDebuggerScript(Isolate* isolate, int index); | 567 static bool CompileDebuggerScript(Isolate* isolate, int index); |
568 void ClearOneShot(); | 568 void ClearOneShot(); |
569 void ActivateStepIn(StackFrame* frame); | 569 void ActivateStepIn(StackFrame* frame); |
570 void ClearStepIn(); | 570 void ClearStepIn(); |
571 void ActivateStepOut(StackFrame* frame); | 571 void ActivateStepOut(StackFrame* frame); |
572 void ClearStepNext(); | 572 void ClearStepNext(); |
573 void RemoveDebugInfoAndClearFromShared(Handle<DebugInfo> debug_info); | 573 void RemoveDebugInfoAndClearFromShared(Handle<DebugInfo> debug_info); |
574 void RemoveDebugInfo(DebugInfo** debug_info); | 574 void RemoveDebugInfo(DebugInfo** debug_info); |
| 575 void RemoveDebugInfo(DebugInfoListNode* node); |
| 576 void RemoveDebugInfo(DebugInfoListNode* prev, DebugInfoListNode* node); |
575 Handle<Object> CheckBreakPoints(Handle<Object> break_point); | 577 Handle<Object> CheckBreakPoints(Handle<Object> break_point); |
576 bool CheckBreakPoint(Handle<Object> break_point_object); | 578 bool CheckBreakPoint(Handle<Object> break_point_object); |
577 | 579 |
578 inline void AssertDebugContext() { | 580 inline void AssertDebugContext() { |
579 DCHECK(isolate_->context() == *debug_context()); | 581 DCHECK(isolate_->context() == *debug_context()); |
580 DCHECK(in_debug_scope()); | 582 DCHECK(in_debug_scope()); |
581 } | 583 } |
582 | 584 |
583 void ThreadInit(); | 585 void ThreadInit(); |
584 | 586 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 // several frames above. | 767 // several frames above. |
766 // There is no calling conventions here, because it never actually gets | 768 // There is no calling conventions here, because it never actually gets |
767 // called, it only gets returned to. | 769 // called, it only gets returned to. |
768 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); | 770 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); |
769 }; | 771 }; |
770 | 772 |
771 | 773 |
772 } } // namespace v8::internal | 774 } } // namespace v8::internal |
773 | 775 |
774 #endif // V8_DEBUG_H_ | 776 #endif // V8_DEBUG_H_ |
OLD | NEW |