| 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_H_ | 5 #ifndef V8_DEBUG_H_ |
| 6 #define V8_DEBUG_H_ | 6 #define V8_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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 | 447 |
| 448 // Threading support. | 448 // Threading support. |
| 449 char* ArchiveDebug(char* to); | 449 char* ArchiveDebug(char* to); |
| 450 char* RestoreDebug(char* from); | 450 char* RestoreDebug(char* from); |
| 451 static int ArchiveSpacePerThread(); | 451 static int ArchiveSpacePerThread(); |
| 452 void FreeThreadResources() { } | 452 void FreeThreadResources() { } |
| 453 | 453 |
| 454 // Record function from which eval was called. | 454 // Record function from which eval was called. |
| 455 static void RecordEvalCaller(Handle<Script> script); | 455 static void RecordEvalCaller(Handle<Script> script); |
| 456 | 456 |
| 457 bool CheckExecutionState(int id) { |
| 458 return !debug_context().is_null() && break_id() != 0 && break_id() == id; |
| 459 } |
| 460 |
| 457 // Flags and states. | 461 // Flags and states. |
| 458 DebugScope* debugger_entry() { return thread_local_.current_debug_scope_; } | 462 DebugScope* debugger_entry() { return thread_local_.current_debug_scope_; } |
| 459 inline Handle<Context> debug_context() { return debug_context_; } | 463 inline Handle<Context> debug_context() { return debug_context_; } |
| 460 void set_live_edit_enabled(bool v) { live_edit_enabled_ = v; } | 464 void set_live_edit_enabled(bool v) { live_edit_enabled_ = v; } |
| 461 bool live_edit_enabled() const { | 465 bool live_edit_enabled() const { |
| 462 return FLAG_enable_liveedit && live_edit_enabled_ ; | 466 return FLAG_enable_liveedit && live_edit_enabled_ ; |
| 463 } | 467 } |
| 464 | 468 |
| 465 inline bool is_active() const { return is_active_; } | 469 inline bool is_active() const { return is_active_; } |
| 466 inline bool is_loaded() const { return !debug_context_.is_null(); } | 470 inline bool is_loaded() const { return !debug_context_.is_null(); } |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 // several frames above. | 742 // several frames above. |
| 739 // There is no calling conventions here, because it never actually gets | 743 // There is no calling conventions here, because it never actually gets |
| 740 // called, it only gets returned to. | 744 // called, it only gets returned to. |
| 741 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); | 745 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); |
| 742 }; | 746 }; |
| 743 | 747 |
| 744 | 748 |
| 745 } } // namespace v8::internal | 749 } } // namespace v8::internal |
| 746 | 750 |
| 747 #endif // V8_DEBUG_H_ | 751 #endif // V8_DEBUG_H_ |
| OLD | NEW |