Lines Matching refs:Function
501 const Runtime::Function* function = Runtime::FunctionForId(id);
502 Set(rax, function->nargs);
503 LoadAddress(rbx, ExternalReference(function, isolate()));
516 void MacroAssembler::CallRuntime(const Runtime::Function* f,
518 // If the expected number of arguments of the runtime function is
537 MaybeObject* MacroAssembler::TryCallRuntime(const Runtime::Function* f,
645 ApiFunction* function, int stack_space) {
673 // Call the api function!
675 reinterpret_cast<int64_t>(function->address()),
698 // Check if the function scheduled an exception.
782 // Load the JavaScript builtin function from the builtins object.
1956 void MacroAssembler::TryGetFunctionPrototype(Register function,
1960 testl(function, Immediate(kSmiTagMask));
1963 // Check that the function really is a function.
1964 CmpObjectType(function, JS_FUNCTION_TYPE, result);
1967 // Make sure that the function has an instance prototype.
1973 // Get the prototype or initial map from the function.
1975 FieldOperand(function, JSFunction::kPrototypeOrInitialMapOffset));
1983 // If the function does not have an initial map, we're done.
2099 void MacroAssembler::InvokeFunction(Register function,
2103 ASSERT(function.is(rdi));
2104 movq(rdx, FieldOperand(function, JSFunction::kSharedFunctionInfoOffset));
2105 movq(rsi, FieldOperand(function, JSFunction::kContextOffset));
2117 void MacroAssembler::InvokeFunction(JSFunction* function,
2121 ASSERT(function->is_compiled());
2122 // Get the function and setup the context.
2123 Move(rdi, Handle<JSFunction>(function));
2127 // Since Crankshaft can recompile a function, we need to load
2128 // the Code object every time we call the function.
2130 ParameterCount expected(function->shared()->formal_parameter_count());
2134 Handle<Code> code(function->code());
2135 ParameterCount expected(function->shared()->formal_parameter_count());
2485 // Register element_count is not modified by the function.
2532 // object_size is left unchanged by this function.
2715 // before calling this function.
2738 // Because source is 8-byte aligned in our uses of this function,
2777 // Load the function context (which is the incoming, outer context).
2783 // The context may be an intermediate context, not a function context.
2786 // Slot is in the current function context. Move it into the
2798 Check(equal, "Yo dawg, I heard you liked function contexts "
2799 "so I put function contexts in all your contexts");
2809 void MacroAssembler::LoadGlobalFunction(int index, Register function) {
2811 movq(function, Operand(rsi, Context::SlotOffset(Context::GLOBAL_INDEX)));
2813 movq(function, FieldOperand(function, GlobalObject::kGlobalContextOffset));
2814 // Load the function from the global context.
2815 movq(function, Operand(function, Context::SlotOffset(index)));
2819 void MacroAssembler::LoadGlobalFunctionInitialMap(Register function,
2822 movq(map, FieldOperand(function, JSFunction::kPrototypeOrInitialMapOffset));
2837 // the four register arguments even if the function takes fewer than four
2869 void MacroAssembler::CallCFunction(ExternalReference function,
2871 LoadAddress(rax, function);
2876 void MacroAssembler::CallCFunction(Register function, int num_arguments) {
2882 call(function);