| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index 6d02ba1b1bddb1f470d9eed0275ab7b0b94496b6..53ba309e61a3f5274121e3f0afc5ff87274baea1 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -1328,8 +1328,10 @@ LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) {
|
| LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
|
| LOperand* context = UseFixed(instr->context(), cp);
|
| LOperand* function = UseFixed(instr->function(), r1);
|
| - return MarkAsCall(
|
| - DefineFixed(new(zone()) LCallFunction(context, function), r0), instr);
|
| + LCallFunction* call = new(zone()) LCallFunction(context, function);
|
| + LInstruction* result = DefineFixed(call, r0);
|
| + if (instr->IsTailCall()) return result;
|
| + return MarkAsCall(result, instr);
|
| }
|
|
|
|
|
| @@ -1783,6 +1785,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().IsTagged());
|
| LOperand* value = UseRegisterAtStart(instr->value());
|
| @@ -2489,7 +2501,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);
|
| }
|
| }
|
|
|