OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 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 | 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 |
5 // Flags: --harmony-proxies --allow-natives-syntax --expose-debug-as debug | 5 // Flags: --allow-natives-syntax --expose-debug-as debug |
6 | 6 |
7 "use strict"; | 7 "use strict"; |
8 | 8 |
9 // Test non-JSObject receiver. | 9 // Test non-JSObject receiver. |
10 function f(o) { | 10 function f(o) { |
11 var result = []; | 11 var result = []; |
12 for (var i in o) { | 12 for (var i in o) { |
13 result.push(i); | 13 result.push(i); |
14 } | 14 } |
15 return result; | 15 return result; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 x = false; | 159 x = false; |
160 | 160 |
161 f5(); f5(); f5(); | 161 f5(); f5(); f5(); |
162 %OptimizeFunctionOnNextCall(f5); | 162 %OptimizeFunctionOnNextCall(f5); |
163 x = true; | 163 x = true; |
164 count = 0; | 164 count = 0; |
165 Debug.setListener(listener); | 165 Debug.setListener(listener); |
166 f5(); | 166 f5(); |
167 Debug.setListener(null); | 167 Debug.setListener(null); |
168 assertEquals(1, count); | 168 assertEquals(1, count); |
OLD | NEW |