Lines Matching refs:func
123 function assertStrongSemantics(func, object) { argument
124 %DeoptimizeFunction(func);
125 %ClearFunctionTypeFeedback(func);
126 assertThrows(function(){func(object)}, TypeError);
127 assertThrows(function(){func(object)}, TypeError);
128 assertThrows(function(){func(object)}, TypeError);
129 %OptimizeFunctionOnNextCall(func);
130 assertThrows(function(){func(object)}, TypeError);
131 %DeoptimizeFunction(func);
132 assertThrows(function(){func(object)}, TypeError);
135 function assertSloppySemantics(func, object) { argument
136 %DeoptimizeFunction(func);
137 %ClearFunctionTypeFeedback(func);
138 assertDoesNotThrow(function(){func(object)});
139 assertDoesNotThrow(function(){func(object)});
140 assertDoesNotThrow(function(){func(object)});
141 %OptimizeFunctionOnNextCall(func);
142 assertDoesNotThrow(function(){func(object)});
143 %DeoptimizeFunction(func);
144 assertDoesNotThrow(function(){func(object)});
222 for (let func of readStrong) {
223 assertStrongSemantics(func, object);
225 for (let func of readSloppy) {
226 assertSloppySemantics(func, object);
234 for (let func of readStrong.concat(readSloppy)) {
235 assertSloppySemantics(func, object);
244 for (let func of readStrong) {
245 assertStrongSemantics(func, object);
247 for (let func of readSloppy) {
248 assertSloppySemantics(func, object);
257 for (let func of readStrong) {
258 assertStrongSemantics(func, object);
260 for (let func of readSloppy) {
261 assertSloppySemantics(func, object);