Index: src/compiler/simplified-operator.h |
diff --git a/src/compiler/simplified-operator.h b/src/compiler/simplified-operator.h |
index e2ccd3b2c9c14fcc44753ed0ab386f8eba15b286..a28e28ed8b1778dcbce54edd3fa866872d1c7f41 100644 |
--- a/src/compiler/simplified-operator.h |
+++ b/src/compiler/simplified-operator.h |
@@ -81,17 +81,17 @@ struct StaticParameterTraits<ElementAccess> { |
}; |
-inline const FieldAccess FieldAccessOf(Operator* op) { |
+inline const FieldAccess FieldAccessOf(const Operator* op) { |
DCHECK(op->opcode() == IrOpcode::kLoadField || |
op->opcode() == IrOpcode::kStoreField); |
- return static_cast<Operator1<FieldAccess>*>(op)->parameter(); |
+ return OpParameter<FieldAccess>(op); |
} |
-inline const ElementAccess ElementAccessOf(Operator* op) { |
+inline const ElementAccess ElementAccessOf(const Operator* op) { |
DCHECK(op->opcode() == IrOpcode::kLoadElement || |
op->opcode() == IrOpcode::kStoreElement); |
- return static_cast<Operator1<ElementAccess>*>(op)->parameter(); |
+ return OpParameter<ElementAccess>(op); |
} |