| Index: src/compiler/instruction-selector-impl.h
|
| diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h
|
| index 7136de96b1d6bda3d7216e43e675ca3808eef2b5..4202c6b8cfbc35c5f93bccc1e85db63a05028940 100644
|
| --- a/src/compiler/instruction-selector-impl.h
|
| +++ b/src/compiler/instruction-selector-impl.h
|
| @@ -193,6 +193,25 @@ class OperandGenerator {
|
| Constant(RpoNumber::FromInt(block->rpo_number())));
|
| }
|
|
|
| + InstructionOperand UseForDeopt(Node* node, FrameStateInputKind kind) {
|
| + switch (node->opcode()) {
|
| + case IrOpcode::kInt32Constant:
|
| + case IrOpcode::kNumberConstant:
|
| + case IrOpcode::kFloat32Constant:
|
| + case IrOpcode::kFloat64Constant:
|
| + case IrOpcode::kHeapConstant:
|
| + return UseImmediate(node);
|
| + default:
|
| + switch (kind) {
|
| + case FrameStateInputKind::kStackSlot:
|
| + return UseUniqueSlot(node);
|
| + case FrameStateInputKind::kAny:
|
| + return UseAny(node);
|
| + }
|
| + }
|
| + UNREACHABLE();
|
| + }
|
| +
|
| protected:
|
| InstructionSelector* selector() const { return selector_; }
|
| InstructionSequence* sequence() const { return selector()->sequence(); }
|
|
|