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

Unified Diff: Source/bindings/core/v8/WorkerScriptController.cpp

Issue 429453010: Drop V8RecursionScope dependency on ExecutionContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reorder cleanup methods per haraken Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/v8/WorkerScriptController.cpp
diff --git a/Source/bindings/core/v8/WorkerScriptController.cpp b/Source/bindings/core/v8/WorkerScriptController.cpp
index 8ebafdfe1fcc773312a944b369fbc9062c7cc352..1a38509dba3e7e7c5e612a1eaf96d50bd7757e50 100644
--- a/Source/bindings/core/v8/WorkerScriptController.cpp
+++ b/Source/bindings/core/v8/WorkerScriptController.cpp
@@ -130,7 +130,7 @@ public:
virtual void postCleanup()
{
- V8PerIsolateData::dispose(m_isolate);
+ V8PerIsolateData::destroy(m_isolate);
}
private:
@@ -153,6 +153,8 @@ WorkerScriptController::~WorkerScriptController()
if (isContextInitialized())
m_scriptState->disposePerContextData();
+ V8PerIsolateData::willBeDestroyed(m_isolate);
+
ThreadState::current()->addCleanupTask(IsolateCleanupTask::create(m_isolate));
}
« no previous file with comments | « Source/bindings/core/v8/V8ScriptRunner.cpp ('k') | Source/bindings/modules/v8/ModuleBindingsInitializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698