Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index a6644af5ef78a605a9beb003dfd93228339dba32..60f577eb42d06ea0a4ca0c9195d1d0d41ae08261 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -2554,15 +2554,8 @@ LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) { |
LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { |
info()->MarkAsRequiresFrame(); |
LOperand* args = UseRegister(instr->arguments()); |
- LOperand* length; |
- LOperand* index; |
- if (instr->length()->IsConstant() && instr->index()->IsConstant()) { |
- length = UseRegisterOrConstant(instr->length()); |
- index = UseOrConstant(instr->index()); |
- } else { |
- length = UseTempRegister(instr->length()); |
- index = UseRegisterAtStart(instr->index()); |
- } |
+ LOperand* length = UseRegisterOrConstantAtStart(instr->length()); |
+ LOperand* index = UseRegisterOrConstantAtStart(instr->index()); |
return DefineAsRegister(new(zone()) LAccessArgumentsAt(args, length, index)); |
} |