| 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 // This is adapted from mjsunit/for-in-opt.js. | 5 // This is adapted from mjsunit/for-in-opt.js. |
| 6 | 6 |
| 7 // Flags: --harmony-proxies --harmony-reflect --allow-natives-syntax | 7 // Flags: --harmony-proxies --harmony-reflect --allow-natives-syntax |
| 8 | 8 |
| 9 | 9 |
| 10 "use strict"; | 10 "use strict"; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // } | 61 // } |
| 62 // | 62 // |
| 63 // function check_f2() { | 63 // function check_f2() { |
| 64 // assertEquals(keys, f2(o)); | 64 // assertEquals(keys, f2(o)); |
| 65 // assertEquals(keys, has_keys); | 65 // assertEquals(keys, has_keys); |
| 66 // has_keys.length = 0; | 66 // has_keys.length = 0; |
| 67 // } | 67 // } |
| 68 // | 68 // |
| 69 // check_f2(); | 69 // check_f2(); |
| 70 // check_f2(); | 70 // check_f2(); |
| 71 // Test lazy deopt after GetPropertyNamesFast | 71 // Test lazy deopt after ForInEnumerate |
| 72 // %OptimizeFunctionOnNextCall(f2); | 72 // %OptimizeFunctionOnNextCall(f2); |
| 73 // deopt_enum = true; | 73 // deopt_enum = true; |
| 74 // check_f2(); | 74 // check_f2(); |
| 75 // Test lazy deopt after FILTER_KEY | 75 // Test lazy deopt after FILTER_KEY |
| 76 // %OptimizeFunctionOnNextCall(f2); | 76 // %OptimizeFunctionOnNextCall(f2); |
| 77 // deopt_has = true; | 77 // deopt_has = true; |
| 78 // check_f2(); | 78 // check_f2(); |
| OLD | NEW |