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

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

Issue 422293004: Update memory related v8 notifications API calls (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/bindings/core/v8/ScriptProfiler.cpp ('k') | Source/bindings/core/v8/WorkerScriptController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8GCForContextDispose.cpp
diff --git a/Source/bindings/core/v8/V8GCForContextDispose.cpp b/Source/bindings/core/v8/V8GCForContextDispose.cpp
index 7c8fffcf11c52d648ee631b1e0b8f3008267b04c..98fee0c29f21145262c00415115cf35390377c76 100644
--- a/Source/bindings/core/v8/V8GCForContextDispose.cpp
+++ b/Source/bindings/core/v8/V8GCForContextDispose.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "bindings/core/v8/V8GCForContextDispose.h"
+#include "bindings/core/v8/V8PerIsolateData.h"
#include "wtf/StdLibExtras.h"
#include <v8.h>
@@ -45,7 +46,7 @@ V8GCForContextDispose::V8GCForContextDispose()
void V8GCForContextDispose::notifyContextDisposed(bool isMainFrame)
{
m_didDisposeContextForMainFrame = m_didDisposeContextForMainFrame || isMainFrame;
- v8::V8::ContextDisposedNotification();
+ V8PerIsolateData::mainThreadIsolate()->ContextDisposedNotification();
if (!m_pseudoIdleTimer.isActive())
m_pseudoIdleTimer.startOneShot(0.8, FROM_HERE);
}
@@ -72,7 +73,7 @@ void V8GCForContextDispose::pseudoIdleTimerFired(Timer<V8GCForContextDispose>*)
const int longIdlePauseInMs = 1000;
const int shortIdlePauseInMs = 10;
int hint = m_didDisposeContextForMainFrame ? longIdlePauseInMs : shortIdlePauseInMs;
- v8::V8::IdleNotification(hint);
+ V8PerIsolateData::mainThreadIsolate()->IdleNotification(hint);
m_didDisposeContextForMainFrame = false;
}
« no previous file with comments | « Source/bindings/core/v8/ScriptProfiler.cpp ('k') | Source/bindings/core/v8/WorkerScriptController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698