Lines Matching defs:function

39 #include "src/objects/js-function.h"
109 using NodeGenerator0 = std::function<TNode<Object>()>;
110 using VoidGenerator0 = std::function<void()>;
194 using If1BodyFunction = std::function<TNode<T>()>;
278 TNode<Object> JSCall3(TNode<Object> function, TNode<Object> this_arg,
281 TNode<Object> JSCall4(TNode<Object> function, TNode<Object> this_arg,
435 using CatchFunction = std::function<void(TNode<Object>)>;
476 using ConditionFunction1 = std::function<TNode<Boolean>(TNode<Number>)>;
477 using StepFunction1 = std::function<TNode<Number>(TNode<Number>)>;
479 using For0BodyFunction = std::function<void(TNode<Number>)>;
538 using For1BodyFunction = std::function<void(TNode<Number>, TNode<Object>*)>;
931 // arguments, so extract c_argument_count from the first function.
959 // call code, external constant for function, argc, call handler info data,
1081 TNode<Object> function, TNode<Object> this_arg, TNode<Object> arg0,
1091 function, this_arg, arg0, arg1, arg2, n.feedback_vector(),
1097 TNode<Object> function, TNode<Object> this_arg, TNode<Object> arg0,
1108 function, this_arg, arg0, arg1, arg2, arg3, n.feedback_vector(),
1824 // We need an eager frame state for right after the callback function
2216 jsgraph->UndefinedConstant(), /* reject function */
2689 // ES section #sec-function.prototype.bind
2739 // This mirrors the checks done in builtins-function-gen.cc at
2833 JSFunctionRef function = m.Ref(broker()).AsJSFunction();
2834 context = jsgraph()->Constant(function.context());
3090 // number of inputs for a given argument count. Wrap it in a helper function.
3622 // represents the set of "optimizable" function overloads.
3686 broker(), "FunctionTemplateInfo for function with SFI " << shared);
3698 // If the API function accepts any kind of {receiver}, we only need to
3830 TRACE_BROKER_MISSING(broker(), "call code for function template info "
3969 // Don't use CallIC feedback when we know the function
4081 // some other function (and same for the {arguments_list}).
4131 // the outermost function.
4149 // some other function (and same for the {arg_array}).
4176 // Check whether the given new target value is a constructor function. The
4331 bool JSCallReducer::IsBuiltinOrApiFunction(JSFunctionRef function) const {
4332 // TODO(neis): Add a way to check if function template info isn't serialized
4333 // and add a warning in such cases. Currently we can't tell if function
4335 return function.shared().HasBuiltinId() ||
4336 function.shared().function_template_info().has_value();
4354 JSFunctionRef function = target_ref.AsJSFunction();
4357 if (!function.native_context().equals(native_context())) {
4361 return ReduceJSCall(node, function.shared());
4363 JSBoundFunctionRef function = target_ref.AsJSBoundFunction();
4364 ObjectRef bound_this = function.bound_this();
4372 FixedArrayRef bound_arguments = function.bound_arguments();
4387 node, jsgraph()->Constant(function.bound_target_function()),
4435 // function directly instead.
4511 // which uniquely identifies a given function inside a native context.
4962 JSFunctionRef function = target_ref.AsJSFunction();
4963 shared = function.shared();
5033 // Array function and collected transition (and pretenuring) feedback
5095 JSFunctionRef function = target_ref.AsJSFunction();
5101 SharedFunctionInfoRef sfi = function.shared();
5105 if (!function.native_context().equals(native_context())) {
5137 !mnew_target.Ref(broker()).equals(function)) {
5151 return ReduceTypedArrayConstructor(node, function.shared());
5156 JSBoundFunctionRef function = target_ref.AsJSBoundFunction();
5157 JSReceiverRef bound_target_function = function.bound_target_function();
5158 FixedArrayRef bound_arguments = function.bound_arguments();
5213 // function directly instead.