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

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

Issue 1732253002: [debugger] add utility to print break location. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comment Created 4 years, 9 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/debug/debug.cc » ('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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698