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.h

Issue 242003: Fixed some cctest flakiness on mac. (Closed)
Patch Set: Created 11 years, 2 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.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 static Handle<Object> Call(Handle<JSFunction> fun, 638 static Handle<Object> Call(Handle<JSFunction> fun,
639 Handle<Object> data, 639 Handle<Object> data,
640 bool* pending_exception); 640 bool* pending_exception);
641 641
642 // Start the debugger agent listening on the provided port. 642 // Start the debugger agent listening on the provided port.
643 static bool StartAgent(const char* name, int port); 643 static bool StartAgent(const char* name, int port);
644 644
645 // Stop the debugger agent. 645 // Stop the debugger agent.
646 static void StopAgent(); 646 static void StopAgent();
647 647
648 // Blocks until the agent has started listening for connections
649 static void WaitForAgent();
650
648 // Unload the debugger if possible. Only called when no debugger is currently 651 // Unload the debugger if possible. Only called when no debugger is currently
649 // active. 652 // active.
650 static void UnloadDebugger(); 653 static void UnloadDebugger();
651 654
652 inline static bool EventActive(v8::DebugEvent event) { 655 inline static bool EventActive(v8::DebugEvent event) {
653 ScopedLock with(debugger_access_); 656 ScopedLock with(debugger_access_);
654 657
655 // Check whether the message handler was been cleared. 658 // Check whether the message handler was been cleared.
656 if (debugger_unload_pending_) { 659 if (debugger_unload_pending_) {
657 UnloadDebugger(); 660 UnloadDebugger();
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 Debug::AddressId id_; 859 Debug::AddressId id_;
857 int reg_; 860 int reg_;
858 }; 861 };
859 862
860 863
861 } } // namespace v8::internal 864 } } // namespace v8::internal
862 865
863 #endif // ENABLE_DEBUGGER_SUPPORT 866 #endif // ENABLE_DEBUGGER_SUPPORT
864 867
865 #endif // V8_DEBUG_H_ 868 #endif // V8_DEBUG_H_
OLDNEW
« no previous file with comments | « no previous file | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698