| 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 2694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2705 fun, | 2705 fun, |
| 2706 Handle<Object>(Debug::debug_context_->global_proxy()), | 2706 Handle<Object>(Debug::debug_context_->global_proxy()), |
| 2707 kArgc, | 2707 kArgc, |
| 2708 argv, | 2708 argv, |
| 2709 pending_exception); | 2709 pending_exception); |
| 2710 return result; | 2710 return result; |
| 2711 } | 2711 } |
| 2712 | 2712 |
| 2713 | 2713 |
| 2714 static void StubMessageHandler2(const v8::Debug::Message& message) { | 2714 static void StubMessageHandler2(const v8::Debug::Message& message) { |
| 2715 PrintF("XXX\n"); | |
| 2716 // Simply ignore message. | 2715 // Simply ignore message. |
| 2717 } | 2716 } |
| 2718 | 2717 |
| 2719 | 2718 |
| 2720 bool Debugger::StartAgent(const char* name, int port, | 2719 bool Debugger::StartAgent(const char* name, int port, |
| 2721 bool wait_for_connection) { | 2720 bool wait_for_connection) { |
| 2722 if (wait_for_connection) { | 2721 if (wait_for_connection) { |
| 2723 // Suspend V8 if it is already running or set V8 to suspend whenever | 2722 // Suspend V8 if it is already running or set V8 to suspend whenever |
| 2724 // it starts. | 2723 // it starts. |
| 2725 // Provide stub message handler; V8 auto-continues each suspend | 2724 // Provide stub message handler; V8 auto-continues each suspend |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3061 { | 3060 { |
| 3062 Locker locker; | 3061 Locker locker; |
| 3063 Debugger::CallMessageDispatchHandler(); | 3062 Debugger::CallMessageDispatchHandler(); |
| 3064 } | 3063 } |
| 3065 } | 3064 } |
| 3066 } | 3065 } |
| 3067 | 3066 |
| 3068 #endif // ENABLE_DEBUGGER_SUPPORT | 3067 #endif // ENABLE_DEBUGGER_SUPPORT |
| 3069 | 3068 |
| 3070 } } // namespace v8::internal | 3069 } } // namespace v8::internal |
| OLD | NEW |