Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Side by Side Diff: Source/WebCore/bindings/v8/WorkerScriptDebugServer.cpp

Issue 12087054: Revert 140611 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1397/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 v8::Debug::SetDebugEventListener2(&WorkerScriptDebugServer::v8DebugEventCall back, v8::External::New(this)); 67 v8::Debug::SetDebugEventListener2(&WorkerScriptDebugServer::v8DebugEventCall back, v8::External::New(this));
68 68
69 v8::Handle<v8::Function> getScriptsFunction = v8::Local<v8::Function>::Cast( m_debuggerScript.get()->Get(v8::String::NewSymbol("getWorkerScripts"))); 69 v8::Handle<v8::Function> getScriptsFunction = v8::Local<v8::Function>::Cast( m_debuggerScript.get()->Get(v8::String::NewSymbol("getWorkerScripts")));
70 v8::Handle<v8::Value> argv[] = { v8Undefined() }; 70 v8::Handle<v8::Value> argv[] = { v8Undefined() };
71 v8::Handle<v8::Value> value = getScriptsFunction->Call(m_debuggerScript.get( ), 0, argv); 71 v8::Handle<v8::Value> value = getScriptsFunction->Call(m_debuggerScript.get( ), 0, argv);
72 if (value.IsEmpty()) 72 if (value.IsEmpty())
73 return; 73 return;
74 ASSERT(!value->IsUndefined() && value->IsArray()); 74 ASSERT(!value->IsUndefined() && value->IsArray());
75 v8::Handle<v8::Array> scriptsArray = v8::Handle<v8::Array>::Cast(value); 75 v8::Handle<v8::Array> scriptsArray = v8::Handle<v8::Array>::Cast(value);
76 for (unsigned i = 0; i < scriptsArray->Length(); ++i) 76 for (unsigned i = 0; i < scriptsArray->Length(); ++i)
77 dispatchDidParseSource(listener, v8::Handle<v8::Object>::Cast(scriptsArr ay->Get(v8Integer(i, debuggerContext->GetIsolate())))); 77 dispatchDidParseSource(listener, v8::Handle<v8::Object>::Cast(scriptsArr ay->Get(deprecatedV8Integer(i))));
78 } 78 }
79 79
80 void WorkerScriptDebugServer::removeListener(ScriptDebugListener* listener) 80 void WorkerScriptDebugServer::removeListener(ScriptDebugListener* listener)
81 { 81 {
82 ASSERT(m_listener == listener); 82 ASSERT(m_listener == listener);
83 continueProgram(); 83 continueProgram();
84 m_listener = 0; 84 m_listener = 0;
85 v8::Debug::SetDebugEventListener2(0); 85 v8::Debug::SetDebugEventListener2(0);
86 } 86 }
87 87
(...skipping 22 matching lines...) Expand all
110 } 110 }
111 111
112 void WorkerScriptDebugServer::quitMessageLoopOnPause() 112 void WorkerScriptDebugServer::quitMessageLoopOnPause()
113 { 113 {
114 // Nothing to do here in case of workers since runMessageLoopOnPause will ch eck for paused state after each debugger command. 114 // Nothing to do here in case of workers since runMessageLoopOnPause will ch eck for paused state after each debugger command.
115 } 115 }
116 116
117 } // namespace WebCore 117 } // namespace WebCore
118 118
119 #endif // ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(WORKERS) 119 #endif // ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(WORKERS)
OLDNEW
« no previous file with comments | « Source/WebCore/bindings/v8/WorkerScriptController.cpp ('k') | Source/WebCore/bindings/v8/custom/V8InjectedScriptManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698