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

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

Issue 2423153002: [inspector] migrate stepping related methods to debug-interface (Closed)
Patch Set: we use ClearStepping to cancel stepFrame Created 4 years, 2 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/api.cc ('k') | src/debug/debug-interface.h » ('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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 LiveEditFrameDropMode mode); 494 LiveEditFrameDropMode mode);
495 495
496 // Threading support. 496 // Threading support.
497 char* ArchiveDebug(char* to); 497 char* ArchiveDebug(char* to);
498 char* RestoreDebug(char* from); 498 char* RestoreDebug(char* from);
499 static int ArchiveSpacePerThread(); 499 static int ArchiveSpacePerThread();
500 void FreeThreadResources() { } 500 void FreeThreadResources() { }
501 void Iterate(ObjectVisitor* v); 501 void Iterate(ObjectVisitor* v);
502 502
503 bool CheckExecutionState(int id) { 503 bool CheckExecutionState(int id) {
504 return is_active() && !debug_context().is_null() && break_id() != 0 && 504 return CheckExecutionState() && break_id() == id;
505 break_id() == id; 505 }
506
507 bool CheckExecutionState() {
508 return is_active() && !debug_context().is_null() && break_id() != 0;
506 } 509 }
507 510
508 // Flags and states. 511 // Flags and states.
509 DebugScope* debugger_entry() { 512 DebugScope* debugger_entry() {
510 return reinterpret_cast<DebugScope*>( 513 return reinterpret_cast<DebugScope*>(
511 base::NoBarrier_Load(&thread_local_.current_debug_scope_)); 514 base::NoBarrier_Load(&thread_local_.current_debug_scope_));
512 } 515 }
513 inline Handle<Context> debug_context() { return debug_context_; } 516 inline Handle<Context> debug_context() { return debug_context_; }
514 517
515 void set_live_edit_enabled(bool v) { live_edit_enabled_ = v; } 518 void set_live_edit_enabled(bool v) { live_edit_enabled_ = v; }
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 Handle<Code> code); 824 Handle<Code> code);
822 static bool DebugBreakSlotIsPatched(Address pc); 825 static bool DebugBreakSlotIsPatched(Address pc);
823 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); 826 static void ClearDebugBreakSlot(Isolate* isolate, Address pc);
824 }; 827 };
825 828
826 829
827 } // namespace internal 830 } // namespace internal
828 } // namespace v8 831 } // namespace v8
829 832
830 #endif // V8_DEBUG_DEBUG_H_ 833 #endif // V8_DEBUG_DEBUG_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/debug/debug-interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698