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

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

Issue 1690173002: Ignore pause on debugger statement when breakpoints are disabled (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move check to Runtime_HandleDebuggerStatement Created 4 years, 10 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 | « no previous file | src/runtime/runtime-debug.cc » ('j') | src/runtime/runtime-debug.cc » ('J')
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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 bool live_edit_enabled() const { 518 bool live_edit_enabled() const {
519 return FLAG_enable_liveedit && live_edit_enabled_; 519 return FLAG_enable_liveedit && live_edit_enabled_;
520 } 520 }
521 521
522 inline bool is_active() const { return is_active_; } 522 inline bool is_active() const { return is_active_; }
523 inline bool is_loaded() const { return !debug_context_.is_null(); } 523 inline bool is_loaded() const { return !debug_context_.is_null(); }
524 inline bool in_debug_scope() const { 524 inline bool in_debug_scope() const {
525 return !!base::NoBarrier_Load(&thread_local_.current_debug_scope_); 525 return !!base::NoBarrier_Load(&thread_local_.current_debug_scope_);
526 } 526 }
527 void set_break_points_active(bool v) { break_points_active_ = v; } 527 void set_break_points_active(bool v) { break_points_active_ = v; }
528 bool break_points_active() const { return break_points_active_; }
528 529
529 StackFrame::Id break_frame_id() { return thread_local_.break_frame_id_; } 530 StackFrame::Id break_frame_id() { return thread_local_.break_frame_id_; }
530 int break_id() { return thread_local_.break_id_; } 531 int break_id() { return thread_local_.break_id_; }
531 532
532 // Support for embedding into generated code. 533 // Support for embedding into generated code.
533 Address is_active_address() { 534 Address is_active_address() {
534 return reinterpret_cast<Address>(&is_active_); 535 return reinterpret_cast<Address>(&is_active_);
535 } 536 }
536 537
537 Address after_break_target_address() { 538 Address after_break_target_address() {
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 Handle<Code> code); 791 Handle<Code> code);
791 static bool DebugBreakSlotIsPatched(Address pc); 792 static bool DebugBreakSlotIsPatched(Address pc);
792 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); 793 static void ClearDebugBreakSlot(Isolate* isolate, Address pc);
793 }; 794 };
794 795
795 796
796 } // namespace internal 797 } // namespace internal
797 } // namespace v8 798 } // namespace v8
798 799
799 #endif // V8_DEBUG_DEBUG_H_ 800 #endif // V8_DEBUG_DEBUG_H_
OLDNEW
« no previous file with comments | « no previous file | src/runtime/runtime-debug.cc » ('j') | src/runtime/runtime-debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698