OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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 function counter() { return {x: 0} || this } | |
6 | |
7 | |
8 var f = (function() { | |
9 "use asm"; | |
10 return function g(c1, c2) { | |
11 for (var x = 0 ; x < 100000; ++x) { c1(); } | |
Michael Starzinger
2016/05/23 13:15:33
I assume this loop is used to trigger OSR, correct
| |
12 } | |
13 })(); | |
14 | |
15 g = (function() { f((Array), counter()); }); | |
16 g(); | |
OLD | NEW |