Lines Matching refs:Function
762 // preparing for calling the runtime function.
859 // r1: function (passed through to callee)
969 // Contract with called JS functions requires that function is passed in r1.
989 void MacroAssembler::InvokeFunction(JSFunction* function,
992 ASSERT(function->is_compiled());
994 // Get the function and setup the context.
995 mov(r1, Operand(Handle<JSFunction>(function)));
999 Handle<Code> code(function->code());
1000 ParameterCount expected(function->shared()->formal_parameter_count());
1003 // code field in the function to allow recompilation to take effect
1649 void MacroAssembler::TryGetFunctionPrototype(Register function,
1654 JumpIfSmi(function, miss);
1656 // Check that the function really is a function. Load map into result reg.
1657 CompareObjectType(function, result, scratch, JS_FUNCTION_TYPE);
1660 // Make sure that the function has an instance prototype.
1666 // Get the prototype or initial map from the function.
1668 FieldMemOperand(function, JSFunction::kPrototypeOrInitialMapOffset));
1677 // If the function does not have an initial map, we're done.
1725 ExternalReference function, int stack_space) {
1748 stub.GenerateCall(this, function);
1774 // Check if the function scheduled an exception.
2175 void MacroAssembler::CallRuntime(const Runtime::Function* f,
2179 // If the expected number of arguments of the runtime function is
2204 const Runtime::Function* function = Runtime::FunctionForId(id);
2205 mov(r0, Operand(function->nargs));
2206 mov(r1, Operand(ExternalReference(function, isolate())));
2298 // Load the JavaScript builtin function from the builtins object.
2434 // Load the function context (which is the incoming, outer context).
2441 // Slot is in the current function context. Move it into the
2454 Check(eq, "Yo dawg, I heard you liked function contexts "
2455 "so I put function contexts in all your contexts");
2460 void MacroAssembler::LoadGlobalFunction(int index, Register function) {
2462 ldr(function, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_INDEX)));
2464 ldr(function, FieldMemOperand(function,
2466 // Load the function from the global context.
2467 ldr(function, MemOperand(function, Context::SlotOffset(index)));
2471 void MacroAssembler::LoadGlobalFunctionInitialMap(Register function,
2475 ldr(map, FieldMemOperand(function, JSFunction::kPrototypeOrInitialMapOffset));
2817 void MacroAssembler::CallCFunction(ExternalReference function,
2819 CallCFunctionHelper(no_reg, function, ip, num_arguments);
2822 void MacroAssembler::CallCFunction(Register function,
2825 CallCFunctionHelper(function,
2832 void MacroAssembler::CallCFunctionHelper(Register function,
2836 // Make sure that the stack is aligned before calling a C function unless
2856 // Just call directly. The function called cannot cause a GC, or
2859 if (function.is(no_reg)) {
2861 function = scratch;
2863 Call(function);