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

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

Issue 183353002: Merged r19535, r19549, r19586, r19584 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
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/x64/lithium-gap-resolver-x64.cc ('k') | test/mjsunit/regress/regress-crbug-345715.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-347262.js
diff --git a/test/mjsunit/regress/regress-346343.js b/test/mjsunit/regress/regress-347262.js
similarity index 75%
copy from test/mjsunit/regress/regress-346343.js
copy to test/mjsunit/regress/regress-347262.js
index e4c10663138db599a682880df98f3310e0754b63..76bc34a2cdc068057516617671e01c1173c7b6f3 100644
--- a/test/mjsunit/regress/regress-346343.js
+++ b/test/mjsunit/regress/regress-347262.js
@@ -27,16 +27,36 @@
// Flags: --allow-natives-syntax
-function f(o) {
- for (var i = 1; i < 2; ++i) {
- var y = o.y;
+(function ArgumentsObjectWithOtherArgumentsInFrame() {
+ function g() {
+ return g.arguments;
}
-}
-f({y:1.1});
-f({y:1.1});
-function g(x) { f({z:x}); }
-g(1);
-g(2);
-%OptimizeFunctionOnNextCall(g);
-g(1);
+ function f(x) {
+ g();
+ return arguments[0];
+ }
+ f();
+ f();
+ %OptimizeFunctionOnNextCall(f);
+ f();
+})();
+
+
+(function ArgumentsObjectWithOtherArgumentsDeopt() {
+ function g(y) {
+ y.o2 = 2;
+ return g.arguments;
+ }
+
+ function f(x) {
+ var o1 = { o2 : 1 };
+ var a = g(o1);
+ o1.o2 = 3;
+ return arguments[0] + a[0].o2;
+ }
+ f(0);
+ f(0);
+ %OptimizeFunctionOnNextCall(f);
+ assertEquals(3, f(0));
+})();
« no previous file with comments | « src/x64/lithium-gap-resolver-x64.cc ('k') | test/mjsunit/regress/regress-crbug-345715.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698