| 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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 MaybeHandle<Object> CallFunction(const char* name, int argc, | 610 MaybeHandle<Object> CallFunction(const char* name, int argc, |
| 611 Handle<Object> args[]); | 611 Handle<Object> args[]); |
| 612 | 612 |
| 613 inline void AssertDebugContext() { | 613 inline void AssertDebugContext() { |
| 614 DCHECK(isolate_->context() == *debug_context()); | 614 DCHECK(isolate_->context() == *debug_context()); |
| 615 DCHECK(in_debug_scope()); | 615 DCHECK(in_debug_scope()); |
| 616 } | 616 } |
| 617 | 617 |
| 618 void ThreadInit(); | 618 void ThreadInit(); |
| 619 | 619 |
| 620 void PrintBreakLocation(); |
| 621 |
| 620 // Global handles. | 622 // Global handles. |
| 621 Handle<Context> debug_context_; | 623 Handle<Context> debug_context_; |
| 622 Handle<Object> event_listener_; | 624 Handle<Object> event_listener_; |
| 623 Handle<Object> event_listener_data_; | 625 Handle<Object> event_listener_data_; |
| 624 | 626 |
| 625 v8::Debug::MessageHandler message_handler_; | 627 v8::Debug::MessageHandler message_handler_; |
| 626 | 628 |
| 627 static const int kQueueInitialSize = 4; | 629 static const int kQueueInitialSize = 4; |
| 628 base::Semaphore command_received_; // Signaled for each command received. | 630 base::Semaphore command_received_; // Signaled for each command received. |
| 629 LockingCommandMessageQueue command_queue_; | 631 LockingCommandMessageQueue command_queue_; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 Handle<Code> code); | 793 Handle<Code> code); |
| 792 static bool DebugBreakSlotIsPatched(Address pc); | 794 static bool DebugBreakSlotIsPatched(Address pc); |
| 793 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 795 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
| 794 }; | 796 }; |
| 795 | 797 |
| 796 | 798 |
| 797 } // namespace internal | 799 } // namespace internal |
| 798 } // namespace v8 | 800 } // namespace v8 |
| 799 | 801 |
| 800 #endif // V8_DEBUG_DEBUG_H_ | 802 #endif // V8_DEBUG_DEBUG_H_ |
| OLD | NEW |