OLD | NEW |
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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 bool wait_for_connection = false); | 658 bool wait_for_connection = false); |
659 | 659 |
660 // Stop the debugger agent. | 660 // Stop the debugger agent. |
661 static void StopAgent(); | 661 static void StopAgent(); |
662 | 662 |
663 // Blocks until the agent has started listening for connections | 663 // Blocks until the agent has started listening for connections |
664 static void WaitForAgent(); | 664 static void WaitForAgent(); |
665 | 665 |
666 static void CallMessageDispatchHandler(); | 666 static void CallMessageDispatchHandler(); |
667 | 667 |
| 668 static Handle<Context> GetDebugContext(); |
| 669 |
668 // Unload the debugger if possible. Only called when no debugger is currently | 670 // Unload the debugger if possible. Only called when no debugger is currently |
669 // active. | 671 // active. |
670 static void UnloadDebugger(); | 672 static void UnloadDebugger(); |
671 | 673 |
672 inline static bool EventActive(v8::DebugEvent event) { | 674 inline static bool EventActive(v8::DebugEvent event) { |
673 ScopedLock with(debugger_access_); | 675 ScopedLock with(debugger_access_); |
674 | 676 |
675 // Check whether the message handler was been cleared. | 677 // Check whether the message handler was been cleared. |
676 if (debugger_unload_pending_) { | 678 if (debugger_unload_pending_) { |
677 if (Debug::debugger_entry() == NULL) { | 679 if (Debug::debugger_entry() == NULL) { |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 | 904 |
903 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 905 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
904 }; | 906 }; |
905 | 907 |
906 | 908 |
907 } } // namespace v8::internal | 909 } } // namespace v8::internal |
908 | 910 |
909 #endif // ENABLE_DEBUGGER_SUPPORT | 911 #endif // ENABLE_DEBUGGER_SUPPORT |
910 | 912 |
911 #endif // V8_DEBUG_H_ | 913 #endif // V8_DEBUG_H_ |
OLD | NEW |