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

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

Issue 2374003002: [ic][mips][mips64] Ensure store handlers return value in proper register. (Closed)
Patch Set: Created 4 years, 3 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/ic/mips64/ic-mips64.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-650973.js
diff --git a/test/mjsunit/regress/regress-crbug-577112.js b/test/mjsunit/regress/regress-crbug-650973.js
similarity index 58%
copy from test/mjsunit/regress/regress-crbug-577112.js
copy to test/mjsunit/regress/regress-crbug-650973.js
index 504f921a335801a51fd1c0c1a39a8b08e8872722..9c2d8c67475656c150fb3f79aeac3e27afd35a1d 100644
--- a/test/mjsunit/regress/regress-crbug-577112.js
+++ b/test/mjsunit/regress/regress-crbug-650973.js
@@ -4,12 +4,15 @@
// Flags: --allow-natives-syntax
-Array.prototype.__proto__ = null;
-var prototype = Array.prototype;
+var v = {p:0};
+// Turn the object into dictionary mode.
+v.__defineGetter__("p", function() { return 13; });
+
function f() {
- prototype.lastIndexOf({});
+ var boom = (v.foo = v);
+ assertEquals(v, boom.foo);
}
+
f();
f();
-%OptimizeFunctionOnNextCall(f);
f();
« no previous file with comments | « src/ic/mips64/ic-mips64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698