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

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

Issue 873703002: Fixed Hydrogen environment handling for mul-i on ARM and ARM64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed ARM64, too. Created 5 years, 11 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/arm64/lithium-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/regress/regress-451322.js
diff --git a/test/mjsunit/compiler/regress-ntl-effect.js b/test/mjsunit/regress/regress-451322.js
similarity index 60%
copy from test/mjsunit/compiler/regress-ntl-effect.js
copy to test/mjsunit/regress/regress-451322.js
index 708fe32828c9197dfa3d8c371ab01cbc1ad3317a..b7794f52f06081f1d047638ef42364a619a6c863 100644
--- a/test/mjsunit/compiler/regress-ntl-effect.js
+++ b/test/mjsunit/regress/regress-451322.js
@@ -4,13 +4,14 @@
// Flags: --allow-natives-syntax
-function g() {
- throw 0;
-}
+var foo = 0;
-function f() {
- g();
- while (1) {}
+function bar() {
+ var baz = 0 - {};
+ if (foo > 24) return baz * 0;
}
-assertThrows(function () { f(); });
+bar();
+bar();
+%OptimizeFunctionOnNextCall(bar);
+bar();
« no previous file with comments | « src/arm64/lithium-arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698