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

Unified Diff: test/cctest/compiler/test-run-jscalls.cc

Issue 1731543004: [builtins] Migrate a bunch of Math builtins to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « src/runtime/runtime-numbers.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-run-jscalls.cc
diff --git a/test/cctest/compiler/test-run-jscalls.cc b/test/cctest/compiler/test-run-jscalls.cc
index c28295857ea38e92521915820fab86f06f4341dd..12566c242a4c68b15f70be2578904bbd7f0782b4 100644
--- a/test/cctest/compiler/test-run-jscalls.cc
+++ b/test/cctest/compiler/test-run-jscalls.cc
@@ -129,12 +129,18 @@ TEST(ConstructorCall) {
}
-TEST(RuntimeCallCPP2) {
+TEST(RuntimeCall) {
FLAG_allow_natives_syntax = true;
- FunctionTester T("(function(a,b) { return %NumberImul(a, b); })");
+ FunctionTester T("(function(a) { return %IsJSReceiver(a); })");
- T.CheckCall(T.Val(2730), T.Val(42), T.Val(65));
- T.CheckCall(T.Val(798), T.Val(42), T.Val(19));
+ T.CheckCall(T.false_value(), T.Val(23), T.undefined());
+ T.CheckCall(T.false_value(), T.Val(4.2), T.undefined());
+ T.CheckCall(T.false_value(), T.Val("str"), T.undefined());
+ T.CheckCall(T.false_value(), T.true_value(), T.undefined());
+ T.CheckCall(T.false_value(), T.false_value(), T.undefined());
+ T.CheckCall(T.false_value(), T.undefined(), T.undefined());
+ T.CheckCall(T.true_value(), T.NewObject("({})"), T.undefined());
+ T.CheckCall(T.true_value(), T.NewObject("([])"), T.undefined());
}
« no previous file with comments | « src/runtime/runtime-numbers.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698