Index: src/compiler/ia32/instruction-selector-ia32.cc |
diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc |
index fcb94bd963b4b72068d18d7cec29a2fb21c7eb27..987d6b0645ff70c0539e490e0266f43127f0de88 100644 |
--- a/src/compiler/ia32/instruction-selector-ia32.cc |
+++ b/src/compiler/ia32/instruction-selector-ia32.cc |
@@ -585,6 +585,26 @@ void InstructionSelector::VisitWord32Sar(Node* node) { |
VisitShift(this, node, kIA32Sar); |
} |
+void InstructionSelector::VisitWasmWord64Shl(Node* node) { |
+ IA32OperandGenerator g(this); |
+ |
+ Node* shift = node->InputAt(2); |
+ InstructionOperand shift_operand; |
+ if (g.CanBeImmediate(shift)) { |
+ shift_operand = g.UseImmediate(shift); |
+ } else { |
+ shift_operand = g.UseFixed(shift, ecx); |
+ } |
+ InstructionOperand inputs[] = {g.UseFixed(node->InputAt(0), eax), |
+ g.UseFixed(node->InputAt(1), edx), |
+ shift_operand}; |
+ |
+ InstructionOperand outputs[] = { |
+ g.DefineAsFixed(node, eax), |
+ g.DefineAsFixed(NodeProperties::FindProjection(node, 1), edx)}; |
+ |
+ Emit(kIA32Shl64, 2, outputs, 3, inputs); |
+} |
void InstructionSelector::VisitWord32Ror(Node* node) { |
VisitShift(this, node, kIA32Ror); |