Lines Matching refs:Function
584 const Runtime::Function* function = Runtime::FunctionForId(id);
585 Set(rax, function->nargs);
586 LoadAddress(rbx, ExternalReference(function, isolate()));
592 void MacroAssembler::CallRuntime(const Runtime::Function* f,
594 // If the expected number of arguments of the runtime function is
703 // Call the api function!
727 // Check if the function scheduled an exception.
796 // Load the JavaScript builtin function from the builtins object.
2904 void MacroAssembler::TryGetFunctionPrototype(Register function,
2909 testl(function, Immediate(kSmiTagMask));
2912 // Check that the function really is a function.
2913 CmpObjectType(function, JS_FUNCTION_TYPE, result);
2918 FieldOperand(function, JSFunction::kSharedFunctionInfoOffset));
2927 // Make sure that the function has an instance prototype.
2933 // Get the prototype or initial map from the function.
2935 FieldOperand(function, JSFunction::kPrototypeOrInitialMapOffset));
2943 // If the function does not have an initial map, we're done.
3027 // You can't call a function without a valid frame.
3065 // You can't call a function without a valid frame.
3097 void MacroAssembler::InvokeFunction(Register function,
3102 // You can't call a function without a valid frame.
3105 ASSERT(function.is(rdi));
3106 movq(rdx, FieldOperand(function, JSFunction::kSharedFunctionInfoOffset));
3107 movq(rsi, FieldOperand(function, JSFunction::kContextOffset));
3119 void MacroAssembler::InvokeFunction(Handle<JSFunction> function,
3124 // You can't call a function without a valid frame.
3127 // Get the function and setup the context.
3128 LoadHeapObject(rdi, function);
3131 // We call indirectly through the code field in the function to
3135 ParameterCount expected(function->shared()->formal_parameter_count());
3174 // case when we invoke function values without going through the
3671 // Register element_count is not modified by the function.
3718 // object_size is left unchanged by this function.
3937 // before calling this function.
3960 // Because source is 8-byte aligned in our uses of this function,
4017 // Slot is in the current function context. Move it into the
4045 // Check that the function's map is the same as the expected cached map.
4080 void MacroAssembler::LoadGlobalFunction(int index, Register function) {
4082 movq(function, Operand(rsi, Context::SlotOffset(Context::GLOBAL_INDEX)));
4084 movq(function, FieldOperand(function, GlobalObject::kGlobalContextOffset));
4085 // Load the function from the global context.
4086 movq(function, Operand(function, Context::SlotOffset(index)));
4090 void MacroAssembler::LoadGlobalFunctionInitialMap(Register function,
4093 movq(map, FieldOperand(function, JSFunction::kPrototypeOrInitialMapOffset));
4108 // the four register arguments even if the function takes fewer than four
4140 void MacroAssembler::CallCFunction(ExternalReference function,
4142 LoadAddress(rax, function);
4147 void MacroAssembler::CallCFunction(Register function, int num_arguments) {
4154 call(function);