| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index b3c23563ea0f33cd91816531237b30c829a3772b..37f7a77d595051f3100e6b3d1a3014164a7c90d0 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -2125,8 +2125,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) {
|
| __ mov(a1, a0);
|
| __ sw(a1, MemOperand(sp, 2 * kPointerSize));
|
| SetCallPosition(expr, 1);
|
| - CallFunctionStub stub(isolate(), 1, CALL_AS_METHOD);
|
| - __ CallStub(&stub);
|
| + __ li(a0, Operand(1));
|
| + __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET);
|
|
|
| __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
| __ Drop(1); // The function is still on the stack; drop it.
|
| @@ -2811,11 +2811,8 @@ void FullCodeGenerator::CallIC(Handle<Code> code,
|
| void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) {
|
| Expression* callee = expr->expression();
|
|
|
| - CallICState::CallType call_type =
|
| - callee->IsVariableProxy() ? CallICState::FUNCTION : CallICState::METHOD;
|
| -
|
| // Get the target function.
|
| - if (call_type == CallICState::FUNCTION) {
|
| + if (callee->IsVariableProxy()) {
|
| { StackValueContext context(this);
|
| EmitVariableLoad(callee->AsVariableProxy());
|
| PrepareForBailout(callee, NO_REGISTERS);
|
| @@ -2837,7 +2834,7 @@ void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) {
|
| __ sw(v0, MemOperand(sp, kPointerSize));
|
| }
|
|
|
| - EmitCall(expr, call_type);
|
| + EmitCall(expr);
|
| }
|
|
|
|
|
| @@ -2875,7 +2872,7 @@ void FullCodeGenerator::EmitSuperCallWithLoadIC(Call* expr) {
|
| // Stack here:
|
| // - target function
|
| // - this (receiver)
|
| - EmitCall(expr, CallICState::METHOD);
|
| + EmitCall(expr);
|
| }
|
|
|
|
|
| @@ -2899,7 +2896,7 @@ void FullCodeGenerator::EmitKeyedCallWithLoadIC(Call* expr,
|
| __ push(at);
|
| __ sw(v0, MemOperand(sp, kPointerSize));
|
|
|
| - EmitCall(expr, CallICState::METHOD);
|
| + EmitCall(expr);
|
| }
|
|
|
|
|
| @@ -2935,11 +2932,11 @@ void FullCodeGenerator::EmitKeyedSuperCallWithLoadIC(Call* expr) {
|
| // Stack here:
|
| // - target function
|
| // - this (receiver)
|
| - EmitCall(expr, CallICState::METHOD);
|
| + EmitCall(expr);
|
| }
|
|
|
|
|
| -void FullCodeGenerator::EmitCall(Call* expr, CallICState::CallType call_type) {
|
| +void FullCodeGenerator::EmitCall(Call* expr) {
|
| // Load the arguments.
|
| ZoneList<Expression*>* args = expr->arguments();
|
| int arg_count = args->length();
|
| @@ -2950,7 +2947,7 @@ void FullCodeGenerator::EmitCall(Call* expr, CallICState::CallType call_type) {
|
| PrepareForBailoutForId(expr->CallId(), NO_REGISTERS);
|
| // Record source position of the IC call.
|
| SetCallPosition(expr, arg_count);
|
| - Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, call_type).code();
|
| + Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count).code();
|
| __ li(a3, Operand(SmiFromSlot(expr->CallFeedbackICSlot())));
|
| __ lw(a1, MemOperand(sp, (arg_count + 1) * kPointerSize));
|
| // Don't assign a type feedback id to the IC, since type feedback is provided
|
| @@ -3057,9 +3054,9 @@ void FullCodeGenerator::EmitPossiblyEvalCall(Call* expr) {
|
| PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS);
|
| // Record source position for debugger.
|
| SetCallPosition(expr, arg_count);
|
| - CallFunctionStub stub(isolate(), arg_count, NO_CALL_FUNCTION_FLAGS);
|
| __ lw(a1, MemOperand(sp, (arg_count + 1) * kPointerSize));
|
| - __ CallStub(&stub);
|
| + __ li(a0, Operand(arg_count));
|
| + __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET);
|
| RecordJSReturnSite(expr);
|
| // Restore context register.
|
| __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
| @@ -4301,9 +4298,9 @@ void FullCodeGenerator::EmitCallJSRuntimeFunction(CallRuntime* expr) {
|
| int arg_count = args->length();
|
|
|
| SetCallPosition(expr, arg_count);
|
| - CallFunctionStub stub(isolate(), arg_count, NO_CALL_FUNCTION_FLAGS);
|
| __ lw(a1, MemOperand(sp, (arg_count + 1) * kPointerSize));
|
| - __ CallStub(&stub);
|
| + __ li(a0, Operand(arg_count));
|
| + __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET);
|
| }
|
|
|
|
|
|
|