Index: src/x87/lithium-x87.cc |
diff --git a/src/x87/lithium-x87.cc b/src/x87/lithium-x87.cc |
index 392335b6b132bfad85a971589703cd7e862237d8..f93ed6287c0913fdb67a1fc192049cce64b11f6b 100644 |
--- a/src/x87/lithium-x87.cc |
+++ b/src/x87/lithium-x87.cc |
@@ -1135,6 +1135,19 @@ LInstruction* LChunkBuilder::DoCallWithDescriptor( |
} |
+LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( |
+ HTailCallThroughMegamorphicCache* instr) { |
+ LOperand* context = UseFixed(instr->context(), esi); |
+ LOperand* receiver_register = |
+ UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); |
+ LOperand* name_register = |
+ UseFixed(instr->name(), LoadDescriptor::NameRegister()); |
+ // Not marked as call. It can't deoptimize, and it never returns. |
+ return new (zone()) LTailCallThroughMegamorphicCache( |
+ context, receiver_register, name_register); |
+} |
+ |
+ |
LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { |
LOperand* context = UseFixed(instr->context(), esi); |
LOperand* function = UseFixed(instr->function(), edi); |