| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Flags: --expose-gc --min-semi-space-size=32 | 5 // Flags: --expose-gc --min-semi-space-size=32 |
| 6 | 6 |
| 7 // We need to set --min-semi-space-size to enable allocation site pretenuring. | 7 // We need to set --min-semi-space-size to enable allocation site pretenuring. |
| 8 | 8 |
| 9 function foo(i) { | 9 function foo(i) { |
| 10 with({}) {}; | 10 with({}) {}; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 z.c = 0.1 + z.b | 22 z.c = 0.1 + z.b |
| 23 all.push(z); | 23 all.push(z); |
| 24 } | 24 } |
| 25 gc(1); | 25 gc(1); |
| 26 gc(1); | 26 gc(1); |
| 27 } | 27 } |
| 28 | 28 |
| 29 step(); | 29 step(); |
| 30 // Now foo will allocate objects in old space. | 30 // Now foo will allocate objects in old space. |
| 31 step(); | 31 step(); |
| OLD | NEW |