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

Unified Diff: Source/bindings/v8/V8PerContextData.h

Issue 216273002: Avoid calling Isolate::GetCurrent() in V8PerContextData (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8PerContextData.h
diff --git a/Source/bindings/v8/V8PerContextData.h b/Source/bindings/v8/V8PerContextData.h
index ad46ce540c16620e696f9914f5287ae920f16ad5..9724bd1584b3012c84257510efd85aecf7a55efd 100644
--- a/Source/bindings/v8/V8PerContextData.h
+++ b/Source/bindings/v8/V8PerContextData.h
@@ -79,14 +79,14 @@ public:
v8::Local<v8::Object> createWrapperFromCache(const WrapperTypeInfo* type)
{
UnsafePersistent<v8::Object> boilerplate = m_wrapperBoilerplates.get(type);
- return !boilerplate.isEmpty() ? boilerplate.newLocal(v8::Isolate::GetCurrent())->Clone() : createWrapperFromCacheSlowCase(type);
+ return !boilerplate.isEmpty() ? boilerplate.newLocal(m_isolate)->Clone() : createWrapperFromCacheSlowCase(type);
}
v8::Local<v8::Function> constructorForType(const WrapperTypeInfo* type)
{
UnsafePersistent<v8::Function> function = m_constructorMap.get(type);
if (!function.isEmpty())
- return function.newLocal(v8::Isolate::GetCurrent());
+ return function.newLocal(m_isolate);
return constructorForTypeSlowCase(type);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698