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-348512.js

Issue 183063006: Fix materialization of captured objects in adapted arguments. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/deoptimizer.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-348512.js
diff --git a/test/mjsunit/recursive-store-opt.js b/test/mjsunit/regress/regress-348512.js
similarity index 92%
copy from test/mjsunit/recursive-store-opt.js
copy to test/mjsunit/regress/regress-348512.js
index fb2649248dbabc642f864f671d0ce2273ad44bd7..7d896664c249c1974ad468292c14284fd2e99413 100644
--- a/test/mjsunit/recursive-store-opt.js
+++ b/test/mjsunit/regress/regress-348512.js
@@ -27,15 +27,11 @@
// Flags: --allow-natives-syntax
-function g() {
- this.x = this;
-}
+function h(y) { assertEquals(42, y.u); }
+function g() { h.apply(0, arguments); }
+function f(x) { g({ u : x }); }
-function f() {
- return new g();
-}
-
-f();
-f();
+f(42);
+f(42);
%OptimizeFunctionOnNextCall(f);
-f();
+f(42);
« no previous file with comments | « src/deoptimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698