Home | History | Annotate | Download | only in mips

Lines Matching refs:Function

2253   //  a1: function (passed through to callee)
2350 void MacroAssembler::InvokeFunction(Register function,
2354 // Contract with called JS functions requires that function is passed in a1.
2355 ASSERT(function.is(a1));
2372 void MacroAssembler::InvokeFunction(JSFunction* function,
2375 ASSERT(function->is_compiled());
2377 // Get the function and setup the context.
2378 li(a1, Operand(Handle<JSFunction>(function)));
2382 Handle<Code> code(function->code());
2383 ParameterCount expected(function->shared()->formal_parameter_count());
2426 void MacroAssembler::TryGetFunctionPrototype(Register function,
2431 JumpIfSmi(function, miss);
2433 // Check that the function really is a function. Load map into result reg.
2434 GetObjectType(function, result, scratch);
2437 // Make sure that the function has an instance prototype.
2443 // Get the prototype or initial map from the function.
2445 FieldMemOperand(function, JSFunction::kPrototypeOrInitialMapOffset));
2453 // If the function does not have an initial map, we're done.
2567 void MacroAssembler::CallRuntime(const Runtime::Function* f,
2571 // If the expected number of arguments of the runtime function is
2591 const Runtime::Function* function = Runtime::FunctionForId(id);
2592 li(a0, Operand(function->nargs));
2593 li(a1, Operand(ExternalReference(function, isolate())));
2662 // Load the JavaScript builtin function from the builtins object.
2802 // Load the function context (which is the incoming, outer context).
2808 // The context may be an intermediate context, not a function context.
2810 } else { // Slot is in the current function context.
2811 // The context may be an intermediate context, not a function context.
2817 void MacroAssembler::LoadGlobalFunction(int index, Register function) {
2819 lw(function, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_INDEX)));
2821 lw(function, FieldMemOperand(function,
2823 // Load the function from the global context.
2824 lw(function, MemOperand(function, Context::SlotOffset(index)));
2828 void MacroAssembler::LoadGlobalFunctionInitialMap(Register function,
2832 lw(map, FieldMemOperand(function, JSFunction::kPrototypeOrInitialMapOffset));
2904 // Setup argc and the builtin function in callee-saved registers.
3199 void MacroAssembler::CallCFunction(ExternalReference function,
3201 CallCFunctionHelper(no_reg, function, at, num_arguments);
3205 void MacroAssembler::CallCFunction(Register function,
3208 CallCFunctionHelper(function,
3215 void MacroAssembler::CallCFunctionHelper(Register function,
3234 // Make sure that the stack is aligned before calling a C function unless
3238 // PrepareCallCFunction. The C function must be called via t9, for mips ABI.
3257 // Just call directly. The function called cannot cause a GC, or
3260 if (!function.is(t9)) {
3261 mov(t9, function);
3262 function = t9;
3265 if (function.is(no_reg)) {
3267 function = t9;
3270 Call(function);