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

Unified Diff: Source/bindings/tests/results/core/V8TestInterfaceNotScriptWrappable.cpp

Issue 611953003: Canvas2D Performance: fix the bottleneck of hasInstance during JS binding -- overloading (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add code change in Source/bindings/tests/results/ 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/tests/results/core/V8TestInterfaceNotScriptWrappable.cpp
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceNotScriptWrappable.cpp b/Source/bindings/tests/results/core/V8TestInterfaceNotScriptWrappable.cpp
index 59ff3c9ce48e35d09dba07c8bad0a033e026920f..cedc2bb4c1c5aa93a406930b0b5f606f52244b7f 100644
--- a/Source/bindings/tests/results/core/V8TestInterfaceNotScriptWrappable.cpp
+++ b/Source/bindings/tests/results/core/V8TestInterfaceNotScriptWrappable.cpp
@@ -45,7 +45,7 @@ static void attr1AttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
{
v8::Handle<v8::Object> holder = info.Holder();
TestInterfaceNotScriptWrappable* impl = V8TestInterfaceNotScriptWrappable::toImpl(holder);
- TestInterfaceNotScriptWrappable* cppValue = V8TestInterfaceNotScriptWrappable::toImplWithTypeCheck(info.GetIsolate(), v8Value);
+ TestInterfaceNotScriptWrappable* cppValue = V8TestInterfaceNotScriptWrappable::toImpl(v8::Handle<v8::Object>::Cast(v8Value));
impl->setAttr1(WTF::getPtr(cppValue));
}
@@ -65,7 +65,7 @@ static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
TestInterfaceNotScriptWrappable* impl = V8TestInterfaceNotScriptWrappable::toImpl(info.Holder());
TestInterfaceNotScriptWrappable* arg;
{
- arg = V8TestInterfaceNotScriptWrappable::toImplWithTypeCheck(info.GetIsolate(), info[0]);
+ arg = V8TestInterfaceNotScriptWrappable::toImpl(v8::Handle<v8::Object>::Cast(info[0]));
}
impl->func(arg);
}

Powered by Google App Engine
This is Rietveld 408576698