Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: test/mjsunit/for-in-opt.js

Issue 1631583002: [for-in] Further refactorings and unification around for-in. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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: --harmony-proxies --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) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 function check_f2() { 61 function check_f2() {
62 assertEquals(keys, f2(o)); 62 assertEquals(keys, f2(o));
63 assertEquals(keys, has_keys); 63 assertEquals(keys, has_keys);
64 has_keys.length = 0; 64 has_keys.length = 0;
65 } 65 }
66 66
67 check_f2(); 67 check_f2();
68 check_f2(); 68 check_f2();
69 69
70 // Test lazy deopt after GetPropertyNamesFast 70 // Test lazy deopt after ForInEnumerate
71 %OptimizeFunctionOnNextCall(f2); 71 %OptimizeFunctionOnNextCall(f2);
72 deopt_enum = true; 72 deopt_enum = true;
73 check_f2(); 73 check_f2();
74 74
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();
79 79
80 function f3(o) { 80 function f3(o) {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
OLDNEW
« src/types.cc ('K') | « src/types.cc ('k') | test/mjsunit/harmony/reflect-enumerate-opt.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698