blob: 3debe66f32bab5aef682a7295fddee9773bddfc6 [file] [log] [blame]
Ben Murdoch61f157c2016-09-16 13:49:30 +01001// 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// Flags: --allow-natives-syntax
6
7function counter() { return {x: 0} || this }
8
9var f = (function() {
10 "use asm";
11 return function g(c1, c2) {
12 for (var x = 0 ; x < 10; ++x) {
13 if (x == 5) %OptimizeOsr();
14 c1();
15 }
16 }
17})();
18
19g = (function() { f((Array), counter()); });
20g();