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

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

Issue 897263002: Fix HConstant(double, ...) constructor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/hydrogen-instructions.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-3865.js
diff --git a/test/mjsunit/regress/regress-451322.js b/test/mjsunit/regress/regress-3865.js
similarity index 68%
copy from test/mjsunit/regress/regress-451322.js
copy to test/mjsunit/regress/regress-3865.js
index b7794f52f06081f1d047638ef42364a619a6c863..0d1d02f00da3c070b157607a112f3f09bf0756a9 100644
--- a/test/mjsunit/regress/regress-451322.js
+++ b/test/mjsunit/regress/regress-3865.js
@@ -4,14 +4,11 @@
// Flags: --allow-natives-syntax
-var foo = 0;
-
function bar() {
- var baz = 0 - {};
- if (foo > 24) return baz * 0;
+ var radix = 10;
+ return 21 / radix | 0;
}
-
-bar();
-bar();
+assertEquals(2, bar());
+assertEquals(2, bar());
%OptimizeFunctionOnNextCall(bar);
-bar();
+assertEquals(2, bar());
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698