Lines Matching refs:func
339 for (let func of strongNumberFuncs) {
343 assertThrows(function(){func(2, value);}, TypeError);
344 %OptimizeFunctionOnNextCall(func);
345 assertThrows(function(){func(2, value);}, TypeError);
346 %DeoptimizeFunction(func);
348 func(4, 5);
349 func(4, 5);
353 assertThrows(function(){func(2, value);}, TypeError);
354 %OptimizeFunctionOnNextCall(func);
355 assertThrows(function(){func(2, value);}, TypeError);
356 %DeoptimizeFunction(func);
358 func(NaN, NaN);
359 func(NaN, NaN);
363 assertThrows(function(){func(2, value);}, TypeError);
364 %OptimizeFunctionOnNextCall(func);
365 assertThrows(function(){func(2, value);}, TypeError);
366 %DeoptimizeFunction(func);
370 for (let func of strongStringOrNumberFuncs) {
374 assertThrows(function(){func(2, value);}, TypeError);
375 %OptimizeFunctionOnNextCall(func);
376 assertThrows(function(){func(2, value);}, TypeError);
377 %DeoptimizeFunction(func);
379 func("foo", "bar");
380 func("foo", "bar");
384 assertThrows(function(){func(2, value);}, TypeError);
385 %OptimizeFunctionOnNextCall(func);
386 assertThrows(function(){func(2, value);}, TypeError);
387 %DeoptimizeFunction(func);
389 func(NaN, NaN);
390 func(NaN, NaN);
394 assertThrows(function(){func(2, value);}, TypeError);
395 %OptimizeFunctionOnNextCall(func);
396 assertThrows(function(){func(2, value);}, TypeError);
397 %DeoptimizeFunction(func);
401 for (let func of [str_equal_strong, str_ineq_strong]) {
402 assertDoesNotThrow(function(){func(2, undefined)});
403 assertDoesNotThrow(function(){func(2, undefined)});
404 %OptimizeFunctionOnNextCall(func);
405 assertDoesNotThrow(function(){func(2, undefined)});
406 %DeoptimizeFunction(func);
407 assertDoesNotThrow(function(){func(true, {})});
408 assertDoesNotThrow(function(){func(true, {})});
409 %OptimizeFunctionOnNextCall(func);
410 assertDoesNotThrow(function(){func(true, {})});
411 %DeoptimizeFunction(func);