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

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

Issue 2316443002: Include only stuff you need, part 8: Fix debug.h -> liveedit.h. (Closed)
Patch Set: code review (mstarzinger@) Created 4 years, 3 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/debug/arm64/debug-arm64.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"
11 #include "src/base/atomicops.h" 11 #include "src/base/atomicops.h"
12 #include "src/base/hashmap.h" 12 #include "src/base/hashmap.h"
13 #include "src/base/platform/platform.h" 13 #include "src/base/platform/platform.h"
14 #include "src/debug/liveedit.h"
15 #include "src/execution.h" 14 #include "src/execution.h"
16 #include "src/factory.h" 15 #include "src/factory.h"
17 #include "src/flags.h" 16 #include "src/flags.h"
18 #include "src/frames.h" 17 #include "src/frames.h"
18 #include "src/globals.h"
19 #include "src/runtime/runtime.h" 19 #include "src/runtime/runtime.h"
20 #include "src/source-position-table.h" 20 #include "src/source-position-table.h"
21 #include "src/string-stream.h" 21 #include "src/string-stream.h"
22 #include "src/v8threads.h" 22 #include "src/v8threads.h"
23 23
24 #include "include/v8-debug.h" 24 #include "include/v8-debug.h"
25 25
26 namespace v8 { 26 namespace v8 {
27 namespace internal { 27 namespace internal {
28 28
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 BreakPositionAlignment position_aligment); 482 BreakPositionAlignment position_aligment);
483 483
484 // Check whether a global object is the debug global object. 484 // Check whether a global object is the debug global object.
485 bool IsDebugGlobal(JSGlobalObject* global); 485 bool IsDebugGlobal(JSGlobalObject* global);
486 486
487 // Check whether this frame is just about to return. 487 // Check whether this frame is just about to return.
488 bool IsBreakAtReturn(JavaScriptFrame* frame); 488 bool IsBreakAtReturn(JavaScriptFrame* frame);
489 489
490 // Support for LiveEdit 490 // Support for LiveEdit
491 void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id, 491 void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id,
492 LiveEdit::FrameDropMode mode); 492 LiveEditFrameDropMode mode);
493 493
494 // Threading support. 494 // Threading support.
495 char* ArchiveDebug(char* to); 495 char* ArchiveDebug(char* to);
496 char* RestoreDebug(char* from); 496 char* RestoreDebug(char* from);
497 static int ArchiveSpacePerThread(); 497 static int ArchiveSpacePerThread();
498 void FreeThreadResources() { } 498 void FreeThreadResources() { }
499 void Iterate(ObjectVisitor* v); 499 void Iterate(ObjectVisitor* v);
500 500
501 bool CheckExecutionState(int id) { 501 bool CheckExecutionState(int id) {
502 return is_active() && !debug_context().is_null() && break_id() != 0 && 502 return is_active() && !debug_context().is_null() && break_id() != 0 &&
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 int last_statement_position_; 697 int last_statement_position_;
698 698
699 // Frame pointer from last step next or step frame action. 699 // Frame pointer from last step next or step frame action.
700 Address last_fp_; 700 Address last_fp_;
701 701
702 // Frame pointer of the target frame we want to arrive at. 702 // Frame pointer of the target frame we want to arrive at.
703 Address target_fp_; 703 Address target_fp_;
704 704
705 // Stores the way how LiveEdit has patched the stack. It is used when 705 // Stores the way how LiveEdit has patched the stack. It is used when
706 // debugger returns control back to user script. 706 // debugger returns control back to user script.
707 LiveEdit::FrameDropMode frame_drop_mode_; 707 LiveEditFrameDropMode frame_drop_mode_;
708 708
709 // Value of accumulator in interpreter frames. In non-interpreter frames 709 // Value of accumulator in interpreter frames. In non-interpreter frames
710 // this value will be the hole. 710 // this value will be the hole.
711 Handle<Object> return_value_; 711 Handle<Object> return_value_;
712 712
713 Object* suspended_generator_; 713 Object* suspended_generator_;
714 }; 714 };
715 715
716 // Storage location for registers when handling debug break calls 716 // Storage location for registers when handling debug break calls
717 ThreadLocal thread_local_; 717 ThreadLocal thread_local_;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 Handle<Code> code); 821 Handle<Code> code);
822 static bool DebugBreakSlotIsPatched(Address pc); 822 static bool DebugBreakSlotIsPatched(Address pc);
823 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); 823 static void ClearDebugBreakSlot(Isolate* isolate, Address pc);
824 }; 824 };
825 825
826 826
827 } // namespace internal 827 } // namespace internal
828 } // namespace v8 828 } // namespace v8
829 829
830 #endif // V8_DEBUG_DEBUG_H_ 830 #endif // V8_DEBUG_DEBUG_H_
OLDNEW
« no previous file with comments | « src/debug/arm64/debug-arm64.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698