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