Index: test/mjsunit/regress/regress-359441.js |
diff --git a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js b/test/mjsunit/regress/regress-359441.js |
similarity index 70% |
copy from test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js |
copy to test/mjsunit/regress/regress-359441.js |
index 658d776ea3b80cd00d256a5514603bdb3df1f179..d96468c3359763a275f79bf0932ef633c907aa29 100644 |
--- a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js |
+++ b/test/mjsunit/regress/regress-359441.js |
@@ -5,17 +5,19 @@ |
// Flags: --allow-natives-syntax |
function g() { |
- arguments.length; |
+ this.x = {}; |
} |
-var global = ""; |
- |
function f() { |
- global.dummy = this; |
- g({}); |
+ new g(); |
+} |
+ |
+function deopt(x) { |
+ %DeoptimizeFunction(f); |
} |
f(); |
f(); |
%OptimizeFunctionOnNextCall(f); |
+Object.prototype.__defineSetter__('x', deopt); |
f(); |