Index: test/mjsunit/deopt-global-accessor.js |
diff --git a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js b/test/mjsunit/deopt-global-accessor.js |
similarity index 67% |
copy from test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js |
copy to test/mjsunit/deopt-global-accessor.js |
index 658d776ea3b80cd00d256a5514603bdb3df1f179..5c544a0fa0c3b3ba88790fb6e869d11b3a3eb4f0 100644 |
--- a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js |
+++ b/test/mjsunit/deopt-global-accessor.js |
@@ -4,18 +4,20 @@ |
// Flags: --allow-natives-syntax |
-function g() { |
- arguments.length; |
-} |
- |
-var global = ""; |
+x = 1; |
+x = 2; |
+x = 3; |
function f() { |
- global.dummy = this; |
- g({}); |
+ return x; |
} |
f(); |
f(); |
+f(); |
%OptimizeFunctionOnNextCall(f); |
f(); |
+ |
+Object.defineProperty(this, "x", {get:function() { return 100; }}); |
+ |
+assertEquals(100, f()); |