Lines Matching defs:function

21 // Returns the holder JSObject if the function can legally be called with this
52 Isolate* isolate, Handle<HeapObject> function,
97 // This function cannot be called with the given receiver. Abort!
110 isolate, data_obj, *function, raw_holder, *new_target,
132 Handle<JSFunction> function = args.target();
135 Handle<FunctionTemplateInfo> fun_data(function->shared().get_api_func_data(),
139 isolate, HandleApiCallHelper<true>(isolate, function, new_target,
143 isolate, HandleApiCallHelper<false>(isolate, function, new_target,
169 Handle<HeapObject> function,
174 DCHECK(function->IsFunctionTemplateInfo() ||
175 (function->IsJSFunction() &&
176 JSFunction::cast(*function).shared().IsApiFunction()));
180 if (function->IsFunctionTemplateInfo() ||
181 is_sloppy(JSFunction::cast(*function).shared().language_mode())) {
189 // a break point on any API function.
190 DCHECK_IMPLIES(function->IsFunctionTemplateInfo(),
191 !Handle<FunctionTemplateInfo>::cast(function)->BreakAtEntry());
194 function->IsFunctionTemplateInfo()
195 ? Handle<FunctionTemplateInfo>::cast(function)
196 : handle(JSFunction::cast(*function).shared().get_api_func_data(),
199 // new target, function, arguments reversed, receiver.
210 argv[BuiltinArguments::kTargetOffset] = function->ptr();
223 result = HandleApiCallHelper<true>(isolate, function, new_target,
226 result = HandleApiCallHelper<false>(isolate, function, new_target,
234 // Helper function to handle calls to non-function objects created through the
236 // a function (without new).
256 // Get the invocation callback from the function descriptor that was
285 // Handle calls to non-function objects created through the API. This delegate
286 // function is used when the call is a normal function call.
291 // Handle calls to non-function objects created through the API. This delegate
292 // function is used when the call is a construct call.