| Index: src/full-codegen/x87/full-codegen-x87.cc
|
| diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc
|
| index 8b21934004956b13a129c08a9fa1762ee71dc74d..807f6589384732162edc48d7399f56cf39c7de59 100644
|
| --- a/src/full-codegen/x87/full-codegen-x87.cc
|
| +++ b/src/full-codegen/x87/full-codegen-x87.cc
|
| @@ -1729,7 +1729,6 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| StoreArrayLiteralElementStub stub(isolate());
|
| __ CallStub(&stub);
|
| }
|
| -
|
| PrepareForBailoutForId(expr->GetIdForElement(array_index), NO_REGISTERS);
|
| }
|
|
|
| @@ -2041,8 +2040,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) {
|
| __ mov(edi, eax);
|
| __ mov(Operand(esp, 2 * kPointerSize), edi);
|
| SetCallPosition(expr, 1);
|
| - CallFunctionStub stub(isolate(), 1, CALL_AS_METHOD);
|
| - __ CallStub(&stub);
|
| + __ Set(eax, 1);
|
| + __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET);
|
|
|
| __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
|
| __ Drop(1); // The function is still on the stack; drop it.
|
| @@ -2711,10 +2710,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);
|
| @@ -2734,7 +2731,7 @@ void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) {
|
| __ mov(Operand(esp, kPointerSize), eax);
|
| }
|
|
|
| - EmitCall(expr, call_type);
|
| + EmitCall(expr);
|
| }
|
|
|
|
|
| @@ -2771,7 +2768,7 @@ void FullCodeGenerator::EmitSuperCallWithLoadIC(Call* expr) {
|
| // Stack here:
|
| // - target function
|
| // - this (receiver)
|
| - EmitCall(expr, CallICState::METHOD);
|
| + EmitCall(expr);
|
| }
|
|
|
|
|
| @@ -2794,7 +2791,7 @@ void FullCodeGenerator::EmitKeyedCallWithLoadIC(Call* expr,
|
| __ push(Operand(esp, 0));
|
| __ mov(Operand(esp, kPointerSize), eax);
|
|
|
| - EmitCall(expr, CallICState::METHOD);
|
| + EmitCall(expr);
|
| }
|
|
|
|
|
| @@ -2829,11 +2826,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();
|
| @@ -2843,7 +2840,7 @@ void FullCodeGenerator::EmitCall(Call* expr, CallICState::CallType call_type) {
|
|
|
| PrepareForBailoutForId(expr->CallId(), NO_REGISTERS);
|
| SetCallPosition(expr, arg_count);
|
| - Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, call_type).code();
|
| + Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count).code();
|
| __ Move(edx, Immediate(SmiFromSlot(expr->CallFeedbackICSlot())));
|
| __ mov(edi, Operand(esp, (arg_count + 1) * kPointerSize));
|
| // Don't assign a type feedback id to the IC, since type feedback is provided
|
| @@ -2947,9 +2944,9 @@ void FullCodeGenerator::EmitPossiblyEvalCall(Call* expr) {
|
| PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS);
|
|
|
| SetCallPosition(expr, arg_count);
|
| - CallFunctionStub stub(isolate(), arg_count, NO_CALL_FUNCTION_FLAGS);
|
| __ mov(edi, Operand(esp, (arg_count + 1) * kPointerSize));
|
| - __ CallStub(&stub);
|
| + __ Set(eax, arg_count);
|
| + __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET);
|
| RecordJSReturnSite(expr);
|
| // Restore context register.
|
| __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
|
| @@ -4157,9 +4154,9 @@ void FullCodeGenerator::EmitCallJSRuntimeFunction(CallRuntime* expr) {
|
| int arg_count = args->length();
|
|
|
| SetCallPosition(expr, arg_count);
|
| - CallFunctionStub stub(isolate(), arg_count, NO_CALL_FUNCTION_FLAGS);
|
| __ mov(edi, Operand(esp, (arg_count + 1) * kPointerSize));
|
| - __ CallStub(&stub);
|
| + __ Set(eax, arg_count);
|
| + __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET);
|
| }
|
|
|
|
|
|
|