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

Unified Diff: test/mjsunit/regress/regress-arg-materialize-store.js

Issue 919173003: During arguments materialization, do not store materialized objects without lazy deopt. (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/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-arg-materialize-store.js
diff --git a/test/mjsunit/compiler/regress-ntl-effect.js b/test/mjsunit/regress/regress-arg-materialize-store.js
similarity index 55%
copy from test/mjsunit/compiler/regress-ntl-effect.js
copy to test/mjsunit/regress/regress-arg-materialize-store.js
index 708fe32828c9197dfa3d8c371ab01cbc1ad3317a..2a30dc87a33da0aced9afd339fe56efce57933d0 100644
--- a/test/mjsunit/compiler/regress-ntl-effect.js
+++ b/test/mjsunit/regress/regress-arg-materialize-store.js
@@ -4,13 +4,19 @@
// Flags: --allow-natives-syntax
-function g() {
- throw 0;
+function f() {
+ return f.arguments;
}
-function f() {
- g();
- while (1) {}
+function g(deopt) {
+ var o = { x : 2 };
+ f();
+ o.x = 1;
+ deopt + 0;
+ return o.x;
}
-assertThrows(function () { f(); });
+g(0);
+g(0);
+%OptimizeFunctionOnNextCall(g);
+assertEquals(1, g({}));
« 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