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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 int position); | 434 int position); |
435 | 435 |
436 // Returns true if the current stub call is patched to call the debugger. | 436 // Returns true if the current stub call is patched to call the debugger. |
437 static bool IsDebugBreak(Address addr); | 437 static bool IsDebugBreak(Address addr); |
438 | 438 |
439 static Handle<Object> GetSourceBreakLocations( | 439 static Handle<Object> GetSourceBreakLocations( |
440 Handle<SharedFunctionInfo> shared, | 440 Handle<SharedFunctionInfo> shared, |
441 BreakPositionAlignment position_aligment); | 441 BreakPositionAlignment position_aligment); |
442 | 442 |
443 // Check whether a global object is the debug global object. | 443 // Check whether a global object is the debug global object. |
444 bool IsDebugGlobal(GlobalObject* global); | 444 bool IsDebugGlobal(JSGlobalObject* global); |
445 | 445 |
446 // Check whether this frame is just about to return. | 446 // Check whether this frame is just about to return. |
447 bool IsBreakAtReturn(JavaScriptFrame* frame); | 447 bool IsBreakAtReturn(JavaScriptFrame* frame); |
448 | 448 |
449 // Support for LiveEdit | 449 // Support for LiveEdit |
450 void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id, | 450 void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id, |
451 LiveEdit::FrameDropMode mode, | 451 LiveEdit::FrameDropMode mode, |
452 Object** restarter_frame_function_pointer); | 452 Object** restarter_frame_function_pointer); |
453 | 453 |
454 // Threading support. | 454 // Threading support. |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 | 760 |
761 static void PatchDebugBreakSlot(Address pc, Handle<Code> code); | 761 static void PatchDebugBreakSlot(Address pc, Handle<Code> code); |
762 static void ClearDebugBreakSlot(Address pc); | 762 static void ClearDebugBreakSlot(Address pc); |
763 }; | 763 }; |
764 | 764 |
765 | 765 |
766 } // namespace internal | 766 } // namespace internal |
767 } // namespace v8 | 767 } // namespace v8 |
768 | 768 |
769 #endif // V8_DEBUG_DEBUG_H_ | 769 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |