Index: test/mjsunit/regress/regress-crbug-621868.js |
diff --git a/test/mjsunit/regress/regress-crbug-621816.js b/test/mjsunit/regress/regress-crbug-621868.js |
similarity index 59% |
copy from test/mjsunit/regress/regress-crbug-621816.js |
copy to test/mjsunit/regress/regress-crbug-621868.js |
index ca7f5ac6df314f81e4c73f9417d1a6f3240540fc..dcd7b8755bad3f129973bb037f3dd673cdf1c5cd 100644 |
--- a/test/mjsunit/regress/regress-crbug-621816.js |
+++ b/test/mjsunit/regress/regress-crbug-621868.js |
@@ -2,17 +2,19 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --allow-natives-syntax --turbo |
+// Flags: --allow-natives-syntax --verify-heap |
-function f() { |
- var o = {}; |
- o.a = 1; |
+function f(a) { // First parameter is tagged. |
+ var n = 1 + a; |
} |
+ |
function g() { |
- var o = { ['a']: function(){} }; |
f(); |
+ var d = {x : f()}; |
+ return [d]; |
} |
-f(); |
-f(); |
+ |
+g(); |
+g(); |
%OptimizeFunctionOnNextCall(g); |
g(); |