| Index: src/compiler/verifier.cc
|
| diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc
|
| index d750f8da73a476654e2216991369ba3b570b46c3..04ad458e4a759585387dae1136c6358143f53e9e 100644
|
| --- a/src/compiler/verifier.cc
|
| +++ b/src/compiler/verifier.cc
|
| @@ -76,7 +76,10 @@ GenericGraphVisit::Control Verifier::Visitor::Pre(Node* node) {
|
| // Verify that frame state has been inserted for the nodes that need it.
|
| if (OperatorProperties::HasFrameStateInput(node->op())) {
|
| Node* frame_state = NodeProperties::GetFrameStateInput(node);
|
| - CHECK(frame_state->opcode() == IrOpcode::kFrameState);
|
| + CHECK(frame_state->opcode() == IrOpcode::kFrameState ||
|
| + // kFrameState uses undefined as a sentinel.
|
| + (node->opcode() == IrOpcode::kFrameState &&
|
| + frame_state->opcode() == IrOpcode::kHeapConstant));
|
| CHECK(IsDefUseChainLinkPresent(frame_state, node));
|
| CHECK(IsUseDefChainLinkPresent(frame_state, node));
|
| }
|
|
|