Index: test/mjsunit/regress/regress-370827.js |
diff --git a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js b/test/mjsunit/regress/regress-370827.js |
similarity index 55% |
copy from test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js |
copy to test/mjsunit/regress/regress-370827.js |
index 658d776ea3b80cd00d256a5514603bdb3df1f179..5536d5196b569135266257a34a1055c0b2d28292 100644 |
--- a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js |
+++ b/test/mjsunit/regress/regress-370827.js |
@@ -2,20 +2,20 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --allow-natives-syntax |
+// Flags: --allow-natives-syntax --expose-gc --heap-stats |
-function g() { |
- arguments.length; |
-} |
- |
-var global = ""; |
+function g(dummy, x) { |
+ var start = ""; |
+ if (x) { start = x + " - "; } |
+ start = start + "array length"; |
+}; |
function f() { |
- global.dummy = this; |
- g({}); |
+ gc(); |
+ g([0.1]); |
} |
f(); |
-f(); |
%OptimizeFunctionOnNextCall(f); |
f(); |
+f(); |