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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 | 467 |
468 // Flags and states. | 468 // Flags and states. |
469 DebugScope* debugger_entry() { | 469 DebugScope* debugger_entry() { |
470 return reinterpret_cast<DebugScope*>( | 470 return reinterpret_cast<DebugScope*>( |
471 base::NoBarrier_Load(&thread_local_.current_debug_scope_)); | 471 base::NoBarrier_Load(&thread_local_.current_debug_scope_)); |
472 } | 472 } |
473 inline Handle<Context> debug_context() { return debug_context_; } | 473 inline Handle<Context> debug_context() { return debug_context_; } |
474 | 474 |
475 void set_live_edit_enabled(bool v) { live_edit_enabled_ = v; } | 475 void set_live_edit_enabled(bool v) { live_edit_enabled_ = v; } |
476 bool live_edit_enabled() const { | 476 bool live_edit_enabled() const { |
477 return FLAG_enable_liveedit && live_edit_enabled_ ; | 477 return FLAG_enable_liveedit && live_edit_enabled_; |
478 } | 478 } |
479 | 479 |
480 inline bool is_active() const { return is_active_; } | 480 inline bool is_active() const { return is_active_; } |
481 inline bool is_loaded() const { return !debug_context_.is_null(); } | 481 inline bool is_loaded() const { return !debug_context_.is_null(); } |
482 inline bool in_debug_scope() const { | 482 inline bool in_debug_scope() const { |
483 return !!base::NoBarrier_Load(&thread_local_.current_debug_scope_); | 483 return !!base::NoBarrier_Load(&thread_local_.current_debug_scope_); |
484 } | 484 } |
485 void set_disable_break(bool v) { break_disabled_ = v; } | 485 void set_disable_break(bool v) { break_disabled_ = v; } |
486 | 486 |
487 StackFrame::Id break_frame_id() { return thread_local_.break_frame_id_; } | 487 StackFrame::Id break_frame_id() { return thread_local_.break_frame_id_; } |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 int call_argc = -1); | 759 int call_argc = -1); |
760 | 760 |
761 static void PatchDebugBreakSlot(Address pc, Handle<Code> code); | 761 static void PatchDebugBreakSlot(Address pc, Handle<Code> code); |
762 static void ClearDebugBreakSlot(Address pc); | 762 static void ClearDebugBreakSlot(Address pc); |
763 }; | 763 }; |
764 | 764 |
765 | 765 |
766 } } // namespace v8::internal | 766 } } // namespace v8::internal |
767 | 767 |
768 #endif // V8_DEBUG_DEBUG_H_ | 768 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |