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

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

Issue 2103793002: [arm64] We must not overwrite registers for binop results that are used in frame states. (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/arm64/instruction-selector-arm64.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-5158.js
diff --git a/test/mjsunit/regress/regress-5085.js b/test/mjsunit/compiler/regress-5158.js
similarity index 70%
copy from test/mjsunit/regress/regress-5085.js
copy to test/mjsunit/compiler/regress-5158.js
index 0ed034dc2d09e97827e2b4881570d60be2b5072b..ead5f4ed9d36bde7ddf9036f8f18bc11bc386ed3 100644
--- a/test/mjsunit/regress/regress-5085.js
+++ b/test/mjsunit/compiler/regress-5158.js
@@ -5,10 +5,12 @@
// Flags: --allow-natives-syntax
function foo(x) {
- return x instanceof Proxy;
+ x = +x;
+ return (x > 0) ? x : 0 - x;
}
-assertFalse(foo({}));
-assertFalse(foo({}));
+foo(1);
+foo(-1);
+foo(0);
%OptimizeFunctionOnNextCall(foo);
-assertFalse(foo({}));
+assertEquals(2147483648, foo(-2147483648));
« no previous file with comments | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698