Index: src/a64/lithium-a64.cc |
diff --git a/src/a64/lithium-a64.cc b/src/a64/lithium-a64.cc |
index 3e42fc1e045cdd213828ea04036482f805379409..dbc31a21fbf7fd1ee0751590eb657ea6dc4bc1b2 100644 |
--- a/src/a64/lithium-a64.cc |
+++ b/src/a64/lithium-a64.cc |
@@ -1021,10 +1021,8 @@ LInstruction* LChunkBuilder::DoCallWithDescriptor( |
LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
LOperand* context = UseFixed(instr->context(), cp); |
LOperand* function = UseFixed(instr->function(), x1); |
- LInstruction* result = |
- DefineFixed(new(zone()) LCallFunction(context, function), x0); |
- if (instr->IsTailCall()) return result; |
- return MarkAsCall(result, instr); |
+ LCallFunction* call = new(zone()) LCallFunction(context, function); |
+ return MarkAsCall(DefineFixed(call, x0), instr); |
} |
@@ -1406,12 +1404,6 @@ LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) { |
} |
-LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { |
- LOperand* object = UseRegisterAtStart(instr->value()); |
- return DefineAsRegister(new(zone()) LElementsKind(object)); |
-} |
- |
- |
LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
HEnvironment* outer = current_block_->last_environment(); |
HConstant* undefined = graph()->GetConstantUndefined(); |
@@ -2244,16 +2236,6 @@ LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) { |
} |
-LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { |
- LOperand* context = UseFixed(instr->context(), cp); |
- // TODO(all): This should not need to be a fixed register, as it's pushed to |
- // the stack in DoThrow. However, we hit an assertion if it's assigned a non- |
- // fixed register. |
- LOperand* value = UseFixed(instr->value(), x0); |
- return MarkAsCall(new(zone()) LThrow(context, value), instr); |
-} |
- |
- |
LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { |
LOperand* object = UseFixed(instr->value(), x0); |
LToFastProperties* result = new(zone()) LToFastProperties(object); |
@@ -2426,13 +2408,6 @@ LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) { |
} |
-LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
- LOperand* object = UseRegister(instr->value()); |
- LValueOf* result = new(zone()) LValueOf(object, TempRegister()); |
- return DefineSameAsFirst(result); |
-} |
- |
- |
LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { |
LOperand* context = UseFixed(instr->context(), cp); |
// Assign object to a fixed register different from those already used in |