OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 // Flags: --allow-natives-syntax --expose-gc | |
6 | |
7 var a = new (function() { this[0] = 1 }); | |
8 function f() { | |
9 for (var i = 0; i < 4; ++i) { | |
10 var x = a[0]; | |
11 (function() { return x }); | |
12 if (i == 1) %OptimizeOsr(); | |
13 gc(); | |
14 } | |
15 } | |
16 f(); | |
OLD | NEW |