| Index: src/ia32/lithium-ia32.cc
|
| diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc
|
| index 2b1a0259d0e4532ee31a6b727799846022a80e13..278d60030464f8ba83de548fcc6196ed7cb11342 100644
|
| --- a/src/ia32/lithium-ia32.cc
|
| +++ b/src/ia32/lithium-ia32.cc
|
| @@ -1410,8 +1410,10 @@ LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) {
|
| LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
|
| LOperand* context = UseFixed(instr->context(), esi);
|
| LOperand* function = UseFixed(instr->function(), edi);
|
| - LCallFunction* result = new(zone()) LCallFunction(context, function);
|
| - return MarkAsCall(DefineFixed(result, eax), instr);
|
| + LCallFunction* call = new(zone()) LCallFunction(context, function);
|
| + LInstruction* result = DefineFixed(call, eax);
|
| + if (instr->IsTailCall()) return result;
|
| + return MarkAsCall(result, instr);
|
| }
|
|
|
|
|
| @@ -1768,6 +1770,16 @@ LInstruction* LChunkBuilder::DoCompareHoleAndBranch(
|
| }
|
|
|
|
|
| +LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch(
|
| + HCompareMinusZeroAndBranch* instr) {
|
| + LInstruction* goto_instr = CheckElideControlInstruction(instr);
|
| + if (goto_instr != NULL) return goto_instr;
|
| + LOperand* value = UseRegister(instr->value());
|
| + LOperand* scratch = TempRegister();
|
| + return new(zone()) LCompareMinusZeroAndBranch(value, scratch);
|
| +}
|
| +
|
| +
|
| LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
|
| ASSERT(instr->value()->representation().IsSmiOrTagged());
|
| LOperand* temp = TempRegister();
|
| @@ -2559,7 +2571,7 @@ LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
|
| CodeStubInterfaceDescriptor* descriptor =
|
| info()->code_stub()->GetInterfaceDescriptor(info()->isolate());
|
| int index = static_cast<int>(instr->index());
|
| - Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index);
|
| + Register reg = descriptor->GetParameterRegister(index);
|
| return DefineFixed(result, reg);
|
| }
|
| }
|
|
|