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

Unified Diff: test/mjsunit/regress/regress-crbug-523307.js

Issue 1304923003: [arm64] Don't try convert binary operation to shifted form when both operands are the same. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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-crbug-523307.js
diff --git a/test/mjsunit/regress/regress-filter-contexts.js b/test/mjsunit/regress/regress-crbug-523307.js
similarity index 72%
copy from test/mjsunit/regress/regress-filter-contexts.js
copy to test/mjsunit/regress/regress-crbug-523307.js
index d2abe0032548428324afd6675a7031bf53a5e56e..f2909675b2424c68c83fcf0b0f891467fcce851c 100644
--- a/test/mjsunit/regress/regress-filter-contexts.js
+++ b/test/mjsunit/regress/regress-crbug-523307.js
@@ -4,11 +4,13 @@
// Flags: --allow-natives-syntax
-function f() { return f.x; }
-f.__proto__ = null;
-f.prototype = "";
+function f(x) {
+ var c = x * x << 366;
+ var a = c + c;
+ return a;
+}
-f();
-f();
+f(1);
+f(1);
%OptimizeFunctionOnNextCall(f);
-f();
+f(1);
« 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