OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2010-2011 Google Inc. All rights reserved. | 2 * Copyright (c) 2010-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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
573 listener->didParseSource(sourceID, script, compileResult); | 573 listener->didParseSource(sourceID, script, compileResult); |
574 } | 574 } |
575 | 575 |
576 void ScriptDebugServer::ensureDebuggerScriptCompiled() | 576 void ScriptDebugServer::ensureDebuggerScriptCompiled() |
577 { | 577 { |
578 if (!m_debuggerScript.isEmpty()) | 578 if (!m_debuggerScript.isEmpty()) |
579 return; | 579 return; |
580 | 580 |
581 v8::HandleScope scope(m_isolate); | 581 v8::HandleScope scope(m_isolate); |
582 v8::Context::Scope contextScope(v8::Debug::GetDebugContext()); | 582 v8::Context::Scope contextScope(v8::Debug::GetDebugContext()); |
583 const blink::WebData& debuggerScriptSourceResource = blink::Platform::curren t()->loadResource("DebuggerScriptSource.js"); | 583 const blink::WebData& debuggerScriptSourceResource = blink::Platform::curren t()->loadResource("DebuggerScript.js"); |
eseidel
2014/11/18 19:38:47
I'm not sure what the Source suffix did. Maybe th
| |
584 v8::Handle<v8::String> source = v8String(m_isolate, String(debuggerScriptSou rceResource.data(), debuggerScriptSourceResource.size())); | 584 v8::Handle<v8::String> source = v8String(m_isolate, String(debuggerScriptSou rceResource.data(), debuggerScriptSourceResource.size())); |
585 v8::Local<v8::Value> value = V8ScriptRunner::compileAndRunInternalScript(sou rce, m_isolate); | 585 v8::Local<v8::Value> value = V8ScriptRunner::compileAndRunInternalScript(sou rce, m_isolate); |
586 ASSERT(!value.IsEmpty()); | 586 ASSERT(!value.IsEmpty()); |
587 ASSERT(value->IsObject()); | 587 ASSERT(value->IsObject()); |
588 m_debuggerScript.set(m_isolate, v8::Handle<v8::Object>::Cast(value)); | 588 m_debuggerScript.set(m_isolate, v8::Handle<v8::Object>::Cast(value)); |
589 } | 589 } |
590 | 590 |
591 void ScriptDebugServer::discardDebuggerScript() | 591 void ScriptDebugServer::discardDebuggerScript() |
592 { | 592 { |
593 ASSERT(!m_debuggerScript.isEmpty()); | 593 ASSERT(!m_debuggerScript.isEmpty()); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
706 { | 706 { |
707 return PassOwnPtr<ScriptSourceCode>(); | 707 return PassOwnPtr<ScriptSourceCode>(); |
708 } | 708 } |
709 | 709 |
710 String ScriptDebugServer::preprocessEventListener(LocalFrame*, const String& sou rce, const String& url, const String& functionName) | 710 String ScriptDebugServer::preprocessEventListener(LocalFrame*, const String& sou rce, const String& url, const String& functionName) |
711 { | 711 { |
712 return source; | 712 return source; |
713 } | 713 } |
714 | 714 |
715 } // namespace blink | 715 } // namespace blink |
OLD | NEW |