Lines Matching refs:bar
68 function bar(t, len) { function
72 a = bar(Array, 10);
74 b = bar(Array, 1);
76 c = bar(Object, 3);
77 b = bar(Array, 10);
121 function bar(len) { function
124 a = bar(10);
126 a = bar(10);
128 %OptimizeFunctionOnNextCall(bar);
129 a = bar(10);
131 assertOptimized(bar);
132 bar(100000);
133 assertOptimized(bar);
136 a = bar("oops");
137 assertOptimized(bar);
158 function bar() { function
161 a = bar();
162 bar();
163 %OptimizeFunctionOnNextCall(bar);
164 b = bar();
166 if (4 != %GetOptimizationStatus(bar)) {
167 assertOptimized(bar);
170 c = bar();
172 assertOptimized(bar);
180 function bar() { return new Array(); } function
181 bar();
182 bar();
183 %OptimizeFunctionOnNextCall(bar);
184 a = bar();
199 function bar(len) { return new Array(len); } function
200 bar(0);
201 bar(0);
202 %OptimizeFunctionOnNextCall(bar);
203 a = bar(0);
204 assertOptimized(bar);
206 a = bar(1); // ouch!
207 assertOptimized(bar);
209 a = bar(100);
211 a = bar(0);
212 assertOptimized(bar);
215 if (4 != %GetOptimizationStatus(bar)) {
222 function bar(len) { return new Array(len); } function
227 bar(size)[0] = 'string';
228 var res = bar(size);
229 assertKind(elements_kind.fast, bar(size));
230 %OptimizeFunctionOnNextCall(bar);
231 assertKind(elements_kind.fast, bar(size));
235 assertKind(elements_kind.dictionary, bar(large_size));