| 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 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2037 auto_continue, | 2037 auto_continue, |
| 2038 Handle<JSObject>::cast(exec_state), | 2038 Handle<JSObject>::cast(exec_state), |
| 2039 Handle<JSObject>::cast(event_data)); | 2039 Handle<JSObject>::cast(event_data)); |
| 2040 InvokeMessageHandler(message); | 2040 InvokeMessageHandler(message); |
| 2041 } | 2041 } |
| 2042 | 2042 |
| 2043 // If auto continue don't make the event cause a break, but process messages | 2043 // If auto continue don't make the event cause a break, but process messages |
| 2044 // in the queue if any. For script collected events don't even process | 2044 // in the queue if any. For script collected events don't even process |
| 2045 // messages in the queue as the execution state might not be what is expected | 2045 // messages in the queue as the execution state might not be what is expected |
| 2046 // by the client. | 2046 // by the client. |
| 2047 if (auto_continue && !HasCommands() || event == v8::ScriptCollected) { | 2047 if ((auto_continue && !HasCommands()) || event == v8::ScriptCollected) { |
| 2048 return; | 2048 return; |
| 2049 } | 2049 } |
| 2050 | 2050 |
| 2051 // Get the DebugCommandProcessor. | 2051 // Get the DebugCommandProcessor. |
| 2052 v8::Local<v8::Object> api_exec_state = | 2052 v8::Local<v8::Object> api_exec_state = |
| 2053 v8::Utils::ToLocal(Handle<JSObject>::cast(exec_state)); | 2053 v8::Utils::ToLocal(Handle<JSObject>::cast(exec_state)); |
| 2054 v8::Local<v8::String> fun_name = | 2054 v8::Local<v8::String> fun_name = |
| 2055 v8::String::New("debugCommandProcessor"); | 2055 v8::String::New("debugCommandProcessor"); |
| 2056 v8::Local<v8::Function> fun = | 2056 v8::Local<v8::Function> fun = |
| 2057 v8::Function::Cast(*api_exec_state->Get(fun_name)); | 2057 v8::Function::Cast(*api_exec_state->Get(fun_name)); |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2534 | 2534 |
| 2535 | 2535 |
| 2536 void LockingCommandMessageQueue::Clear() { | 2536 void LockingCommandMessageQueue::Clear() { |
| 2537 ScopedLock sl(lock_); | 2537 ScopedLock sl(lock_); |
| 2538 queue_.Clear(); | 2538 queue_.Clear(); |
| 2539 } | 2539 } |
| 2540 | 2540 |
| 2541 #endif // ENABLE_DEBUGGER_SUPPORT | 2541 #endif // ENABLE_DEBUGGER_SUPPORT |
| 2542 | 2542 |
| 2543 } } // namespace v8::internal | 2543 } } // namespace v8::internal |
| OLD | NEW |