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

Unified Diff: test/mjsunit/regress/regress-625121.js

Issue 2116533004: [turbofan] Properly lower NumberSinh, NumberCosh and NumberTanh. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/compiler/simplified-lowering.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-625121.js
diff --git a/test/mjsunit/regress/regress-5085.js b/test/mjsunit/regress/regress-625121.js
similarity index 56%
copy from test/mjsunit/regress/regress-5085.js
copy to test/mjsunit/regress/regress-625121.js
index 0ed034dc2d09e97827e2b4881570d60be2b5072b..27ad0f5faf7ebc4cafd184c70ed51444ea9b928d 100644
--- a/test/mjsunit/regress/regress-5085.js
+++ b/test/mjsunit/regress/regress-625121.js
@@ -4,11 +4,13 @@
// Flags: --allow-natives-syntax
-function foo(x) {
- return x instanceof Proxy;
+function test(f) {
+ f(0);
+ f(NaN);
+ %OptimizeFunctionOnNextCall(f);
+ f(1.0);
}
-assertFalse(foo({}));
-assertFalse(foo({}));
-%OptimizeFunctionOnNextCall(foo);
-assertFalse(foo({}));
+test(x => Math.cosh(+x));
+test(x => Math.sinh(+x));
+test(x => Math.tanh(+x));
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698