Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index 22ca9c7319e56ffdd281825dd4e24733b2a1d0f8..9f69d1ddc2f9273371f8ee7758a7d824d2d76b92 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -907,7 +907,10 @@ void InstructionSelector::VisitNode(Node* node) { |
case IrOpcode::kObjectState: |
return; |
case IrOpcode::kDebugBreak: |
- VisitDebugBreak(); |
+ VisitDebugBreak(node); |
+ return; |
+ case IrOpcode::kComment: |
+ VisitComment(node); |
return; |
case IrOpcode::kLoad: { |
LoadRepresentation type = LoadRepresentationOf(node->op()); |
@@ -1798,11 +1801,17 @@ void InstructionSelector::VisitThrow(Node* value) { |
Emit(kArchThrowTerminator, g.NoOutput()); |
} |
-void InstructionSelector::VisitDebugBreak() { |
+void InstructionSelector::VisitDebugBreak(Node* node) { |
OperandGenerator g(this); |
Emit(kArchDebugBreak, g.NoOutput()); |
} |
+void InstructionSelector::VisitComment(Node* node) { |
+ OperandGenerator g(this); |
+ InstructionOperand operand(g.UseImmediate(node)); |
+ Emit(kArchComment, 0, nullptr, 1, &operand); |
+} |
+ |
FrameStateDescriptor* InstructionSelector::GetFrameStateDescriptor( |
Node* state) { |
DCHECK(state->opcode() == IrOpcode::kFrameState); |