Lines Matching refs:func
74 function assertStrongSemantics(func, object) { argument
75 %DeoptimizeFunction(func);
76 %ClearFunctionTypeFeedback(func);
77 assertThrows(function(){func(object)}, TypeError);
78 assertThrows(function(){func(object)}, TypeError);
79 assertThrows(function(){func(object)}, TypeError);
80 %OptimizeFunctionOnNextCall(func);
81 assertThrows(function(){func(object)}, TypeError);
82 %DeoptimizeFunction(func);
83 assertThrows(function(){func(object)}, TypeError);
86 function assertSloppySemantics(func, object) { argument
87 %DeoptimizeFunction(func);
88 %ClearFunctionTypeFeedback(func);
89 assertDoesNotThrow(function(){func(object)});
90 assertDoesNotThrow(function(){func(object)});
91 assertDoesNotThrow(function(){func(object)});
92 %OptimizeFunctionOnNextCall(func);
93 assertDoesNotThrow(function(){func(object)});
94 %DeoptimizeFunction(func);
95 assertDoesNotThrow(function(){func(object)});
158 for (let func of readStrong) {
159 assertStrongSemantics(func, object);
161 for (let func of readSloppy) {
162 assertSloppySemantics(func, object);
170 for (let func of readStrong.concat(readSloppy)) {
171 assertSloppySemantics(func, object);
180 for (let func of readStrong) {
181 assertStrongSemantics(func, object);
183 for (let func of readSloppy) {
184 assertSloppySemantics(func, object);
193 for (let func of readStrong) {
194 assertStrongSemantics(func, object);
196 for (let func of readSloppy) {
197 assertSloppySemantics(func, object);