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
3 // found in the LICENSE file.
5 // Flags: --allow-natives-syntax --expose-natives-as=builtins --expose-gc
17 %OptimizeFunctionOnNextCall(__f_1);
18 assertEquals("good", __f_1());
20 assertEquals("good", __f_1());
21 } catch(e) { print("Caught: " + e); }
24 __v_5 = new builtins.SetIterator(__v_3, -12);
26 __v_6 = new builtins.MapIterator(__v_4, 2);
28 } catch(e) { print("Caught: " + e); }
29 function __f_4(__v_8, filter) {
31 for (var __v_4 in v) {
32 for (var __v_4 in v) {}
34 %OptimizeFunctionOnNextCall(filter);
37 var __v_7 = eval(__v_8);
41 function __f_5(__v_6) {
42 var __v_5 = new Array(__v_6);
43 for (var __v_4 = 0; __v_4 < __v_6; __v_4++) __v_5.push('{}');
53 } catch(e) { print("Caught: " + e); }