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

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

Issue 657523002: Skip expensive hasInstance() type-checks in overloads (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/V8TestInterfaceConstructor.cpp
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp b/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
index a8886c39d6a44522a86ebf02d455f3b3ee59ef7e..1223c44ea74acf2efd2573f70694d1930aef5a5f 100644
--- a/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
+++ b/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
@@ -33,7 +33,7 @@ const WrapperTypeInfo& TestInterfaceConstructor::s_wrapperTypeInfo = V8TestInter
namespace TestInterfaceConstructorV8Internal {
-static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info)
+static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
{
ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), info.GetIsolate());
ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
@@ -48,7 +48,7 @@ static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info)
v8SetReturnValue(info, wrapper);
}
-static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info)
+static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
{
ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), info.GetIsolate());
double doubleArg;
@@ -91,7 +91,7 @@ static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info)
v8SetReturnValue(info, wrapper);
}
-static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& info)
+static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
{
ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), info.GetIsolate());
V8StringResource<> arg;
@@ -125,7 +125,7 @@ static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& info)
v8SetReturnValue(info, wrapper);
}
-static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& info)
+static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
{
ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), info.GetIsolate());
V8StringResource<> arg;
@@ -154,43 +154,43 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
switch (std::min(8, info.Length())) {
case 0:
if (true) {
- TestInterfaceConstructorV8Internal::constructor1(info);
+ TestInterfaceConstructorV8Internal::constructor1(info, -1);
return;
}
break;
case 1:
if (true) {
- TestInterfaceConstructorV8Internal::constructor3(info);
+ TestInterfaceConstructorV8Internal::constructor3(info, -1);
return;
}
break;
case 2:
if (true) {
- TestInterfaceConstructorV8Internal::constructor3(info);
+ TestInterfaceConstructorV8Internal::constructor3(info, -1);
return;
}
break;
case 3:
if (true) {
- TestInterfaceConstructorV8Internal::constructor4(info);
+ TestInterfaceConstructorV8Internal::constructor4(info, -1);
return;
}
break;
case 6:
if (true) {
- TestInterfaceConstructorV8Internal::constructor2(info);
+ TestInterfaceConstructorV8Internal::constructor2(info, -1);
return;
}
break;
case 7:
if (true) {
- TestInterfaceConstructorV8Internal::constructor2(info);
+ TestInterfaceConstructorV8Internal::constructor2(info, -1);
return;
}
break;
case 8:
if (true) {
- TestInterfaceConstructorV8Internal::constructor2(info);
+ TestInterfaceConstructorV8Internal::constructor2(info, -1);
return;
}
break;

Powered by Google App Engine
This is Rietveld 408576698