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

Unified Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 275763002: Compute distinguishing argument index (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Simplify index computation Created 6 years, 7 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/tests/idls/TestObject.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/V8TestObject.cpp
diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp
index 7b5316d46d48a518cefdafb4a3518dbfa540e400..588d443e3fe0cf30124b576ac3b558715dbd196b 100644
--- a/Source/bindings/tests/results/V8TestObject.cpp
+++ b/Source/bindings/tests/results/V8TestObject.cpp
@@ -6440,13 +6440,13 @@ static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
return;
}
TestObject* impl = V8TestObject::toNative(info.Holder());
- TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState), exceptionState);
+ TONATIVE_VOID(bool, booleanArg, info[0]->BooleanValue());
if (UNLIKELY(info.Length() <= 1)) {
- impl->overloadedMethodB(longArg1);
+ impl->overloadedMethodB(booleanArg);
return;
}
- TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState), exceptionState);
- impl->overloadedMethodB(longArg1, longArg2);
+ TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState), exceptionState);
+ impl->overloadedMethodB(booleanArg, longArg);
}
static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
@@ -6495,9 +6495,9 @@ static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
return;
}
TestObject* impl = V8TestObject::toNative(info.Holder());
- TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
+ TONATIVE_VOID(bool, booleanArg, info[0]->BooleanValue());
TONATIVE_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1));
- impl->overloadedMethodC(longArg, longArgs);
+ impl->overloadedMethodC(booleanArg, longArgs);
}
static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698