Lines Matching refs:func
75 function assertStrongSemantics(func, object) { argument
76 %DeoptimizeFunction(func);
77 %ClearFunctionTypeFeedback(func);
78 assertThrows(function(){func(object)}, TypeError);
79 assertThrows(function(){func(object)}, TypeError);
80 assertThrows(function(){func(object)}, TypeError);
81 %OptimizeFunctionOnNextCall(func);
82 assertThrows(function(){func(object)}, TypeError);
83 %DeoptimizeFunction(func);
84 assertThrows(function(){func(object)}, TypeError);
87 function assertSloppySemantics(func, object) { argument
88 %DeoptimizeFunction(func);
89 %ClearFunctionTypeFeedback(func);
90 assertDoesNotThrow(function(){func(object)});
91 assertDoesNotThrow(function(){func(object)});
92 assertDoesNotThrow(function(){func(object)});
93 %OptimizeFunctionOnNextCall(func);
94 assertDoesNotThrow(function(){func(object)});
95 %DeoptimizeFunction(func);
96 assertDoesNotThrow(function(){func(object)});
156 for (let func of readStrong) {
157 assertStrongSemantics(func, object);
159 for (let func of readSloppy) {
160 assertSloppySemantics(func, object);
166 for (let func of readStrong.concat(readSloppy)) {
167 assertSloppySemantics(func, object);