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

Unified Diff: test/mjsunit/compiler/regress-5129.js

Issue 2090493002: [turbofan] x - y < 0 is not equivalent to x < y. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix cctests 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 | « test/cctest/compiler/test-machine-operator-reducer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/regress-5129.js
diff --git a/test/mjsunit/regress/regress-5085.js b/test/mjsunit/compiler/regress-5129.js
similarity index 66%
copy from test/mjsunit/regress/regress-5085.js
copy to test/mjsunit/compiler/regress-5129.js
index 0ed034dc2d09e97827e2b4881570d60be2b5072b..1d100ab34ccd9961abba729ad985939899c7bf63 100644
--- a/test/mjsunit/regress/regress-5085.js
+++ b/test/mjsunit/compiler/regress-5129.js
@@ -4,11 +4,12 @@
// Flags: --allow-natives-syntax
-function foo(x) {
- return x instanceof Proxy;
+function foo($a,$b) {
+ $a = $a|0;
+ $b = $b|0;
+ var $sub = $a - $b;
+ return ($sub|0) < 0;
}
-assertFalse(foo({}));
-assertFalse(foo({}));
%OptimizeFunctionOnNextCall(foo);
-assertFalse(foo({}));
+assertTrue(foo(0x7fffffff,-1));
« no previous file with comments | « test/cctest/compiler/test-machine-operator-reducer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698