OLD | NEW |
---|---|
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 |
Toon Verwaest
2014/02/28 10:59:15
Flags: --allow-natives-syntax
Hannes Payer (out of office)
2014/02/28 11:06:52
Done.
| |
5 // Flags: --expose-gc | 5 a = {y:1.5}; |
Toon Verwaest
2014/02/28 10:59:15
var a =, var b =, var d =
Hannes Payer (out of office)
2014/02/28 11:06:52
Done.
| |
6 a = []; | 6 a.y = 0; |
7 a[1000] = .1; | 7 b = a.y; |
8 a.length = 0; | 8 a.y= {}; |
Toon Verwaest
2014/02/28 10:59:15
add space after a.y
Hannes Payer (out of office)
2014/02/28 11:06:52
Done.
| |
9 gc(); | 9 d = 1; |
10 gc(); | 10 function f() { |
11 a[1000] = .1; | 11 d = 0; |
12 assertEquals(.1, a[1000]); | 12 return {y: b}; |
13 } | |
14 f(); | |
15 f(); | |
16 %OptimizeFunctionOnNextCall(f); | |
17 f(); | |
OLD | NEW |