Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(928)

Side by Side Diff: src/debug/debug.h

Issue 1854713002: Correctly annotate eval origin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
504 bool CheckExecutionState(int id) { 501 bool CheckExecutionState(int id) {
505 return is_active() && !debug_context().is_null() && break_id() != 0 && 502 return is_active() && !debug_context().is_null() && break_id() != 0 &&
506 break_id() == id; 503 break_id() == id;
507 } 504 }
508 505
509 // Flags and states. 506 // Flags and states.
510 DebugScope* debugger_entry() { 507 DebugScope* debugger_entry() {
511 return reinterpret_cast<DebugScope*>( 508 return reinterpret_cast<DebugScope*>(
512 base::NoBarrier_Load(&thread_local_.current_debug_scope_)); 509 base::NoBarrier_Load(&thread_local_.current_debug_scope_));
513 } 510 }
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 Handle<Code> code); 797 Handle<Code> code);
801 static bool DebugBreakSlotIsPatched(Address pc); 798 static bool DebugBreakSlotIsPatched(Address pc);
802 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); 799 static void ClearDebugBreakSlot(Isolate* isolate, Address pc);
803 }; 800 };
804 801
805 802
806 } // namespace internal 803 } // namespace internal
807 } // namespace v8 804 } // namespace v8
808 805
809 #endif // V8_DEBUG_DEBUG_H_ 806 #endif // V8_DEBUG_DEBUG_H_
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698