Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index c343afd851f0d9e572f1a7b2c1199fe506ba00c8..84516799febad8fd280b94fa13f31898eba50eea 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -1119,6 +1119,19 @@ LInstruction* LChunkBuilder::DoCallWithDescriptor( |
} |
+LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( |
+ HTailCallThroughMegamorphicCache* instr) { |
+ LOperand* context = UseFixed(instr->context(), rsi); |
+ 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(), rsi); |
LOperand* function = UseFixed(instr->function(), rdi); |