| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 Google Inc. All rights reserved. | 2 * Copyright (c) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 v8::Handle<v8::Value> value; | 101 v8::Handle<v8::Value> value; |
| 102 { | 102 { |
| 103 V8RecursionScope::MicrotaskSuppression scope; | 103 V8RecursionScope::MicrotaskSuppression scope; |
| 104 value = getScriptsFunction->Call(m_debuggerScript.get(), 1, argv); | 104 value = getScriptsFunction->Call(m_debuggerScript.get(), 1, argv); |
| 105 } | 105 } |
| 106 if (value.IsEmpty()) | 106 if (value.IsEmpty()) |
| 107 return; | 107 return; |
| 108 ASSERT(!value->IsUndefined() && value->IsArray()); | 108 ASSERT(!value->IsUndefined() && value->IsArray()); |
| 109 v8::Handle<v8::Array> scriptsArray = v8::Handle<v8::Array>::Cast(value); | 109 v8::Handle<v8::Array> scriptsArray = v8::Handle<v8::Array>::Cast(value); |
| 110 for (unsigned i = 0; i < scriptsArray->Length(); ++i) | 110 for (unsigned i = 0; i < scriptsArray->Length(); ++i) |
| 111 dispatchDidParseSource(listener, v8::Handle<v8::Object>::Cast(scriptsArr
ay->Get(v8Integer(i, context->GetIsolate())))); | 111 dispatchDidParseSource(listener, v8::Handle<v8::Object>::Cast(scriptsArr
ay->Get(deprecatedV8Integer(i)))); |
| 112 } | 112 } |
| 113 | 113 |
| 114 void PageScriptDebugServer::removeListener(ScriptDebugListener* listener, Page*
page) | 114 void PageScriptDebugServer::removeListener(ScriptDebugListener* listener, Page*
page) |
| 115 { | 115 { |
| 116 if (!m_listenersMap.contains(page)) | 116 if (!m_listenersMap.contains(page)) |
| 117 return; | 117 return; |
| 118 | 118 |
| 119 if (m_pausedPage == page) | 119 if (m_pausedPage == page) |
| 120 continueProgram(); | 120 continueProgram(); |
| 121 | 121 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 189 } |
| 190 | 190 |
| 191 void PageScriptDebugServer::quitMessageLoopOnPause() | 191 void PageScriptDebugServer::quitMessageLoopOnPause() |
| 192 { | 192 { |
| 193 m_clientMessageLoop->quitNow(); | 193 m_clientMessageLoop->quitNow(); |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace WebCore | 196 } // namespace WebCore |
| 197 | 197 |
| 198 #endif // ENABLE(JAVASCRIPT_DEBUGGER) | 198 #endif // ENABLE(JAVASCRIPT_DEBUGGER) |
| OLD | NEW |