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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 // Support for LiveEdit | 486 // Support for LiveEdit |
487 void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id, | 487 void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id, |
488 LiveEdit::FrameDropMode mode); | 488 LiveEdit::FrameDropMode mode); |
489 | 489 |
490 // Threading support. | 490 // Threading support. |
491 char* ArchiveDebug(char* to); | 491 char* ArchiveDebug(char* to); |
492 char* RestoreDebug(char* from); | 492 char* RestoreDebug(char* from); |
493 static int ArchiveSpacePerThread(); | 493 static int ArchiveSpacePerThread(); |
494 void FreeThreadResources() { } | 494 void FreeThreadResources() { } |
495 | 495 |
496 // Record function from which eval was called. | |
497 static void RecordEvalCaller(Handle<Script> script); | |
498 | |
499 bool CheckExecutionState(int id) { | 496 bool CheckExecutionState(int id) { |
500 return is_active() && !debug_context().is_null() && break_id() != 0 && | 497 return is_active() && !debug_context().is_null() && break_id() != 0 && |
501 break_id() == id; | 498 break_id() == id; |
502 } | 499 } |
503 | 500 |
504 // Flags and states. | 501 // Flags and states. |
505 DebugScope* debugger_entry() { | 502 DebugScope* debugger_entry() { |
506 return reinterpret_cast<DebugScope*>( | 503 return reinterpret_cast<DebugScope*>( |
507 base::NoBarrier_Load(&thread_local_.current_debug_scope_)); | 504 base::NoBarrier_Load(&thread_local_.current_debug_scope_)); |
508 } | 505 } |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 Handle<Code> code); | 794 Handle<Code> code); |
798 static bool DebugBreakSlotIsPatched(Address pc); | 795 static bool DebugBreakSlotIsPatched(Address pc); |
799 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 796 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
800 }; | 797 }; |
801 | 798 |
802 | 799 |
803 } // namespace internal | 800 } // namespace internal |
804 } // namespace v8 | 801 } // namespace v8 |
805 | 802 |
806 #endif // V8_DEBUG_DEBUG_H_ | 803 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |