diff --git a/src/compiler/common-operator.cc b/src/compiler/common-operator.cc index b9aadefdae..e67759ebaa 100644 --- a/src/compiler/common-operator.cc +++ b/src/compiler/common-operator.cc @@ -204,11 +204,12 @@ struct CommonOperatorGlobalCache FINAL { template struct ParameterOperator FINAL : public Operator1 { ParameterOperator() - : Operator1( // -- - IrOpcode::kParameter, Operator::kPure, // opcode - "Parameter", // name - 1, 0, 0, 1, 0, 0, // counts, - kIndex) {} // parameter + : Operator1( // -- + IrOpcode::kParameter, // opcode + Operator::kFoldable | Operator::kNoThrow, // flags + "Parameter", // name + 1, 0, 0, 1, 0, 0, // counts, + kIndex) {} // parameter }; #define CACHED_PARAMETER(index) \ ParameterOperator kParameter##index##Operator; @@ -306,11 +307,12 @@ const Operator* CommonOperatorBuilder::Parameter(int index) { break; } // Uncached. - return new (zone()) Operator1( // -- - IrOpcode::kParameter, Operator::kPure, // opcode - "Parameter", // name - 1, 0, 0, 1, 0, 0, // counts - index); // parameter + return new (zone()) Operator1( // -- + IrOpcode::kParameter, // opcode + Operator::kFoldable | Operator::kNoThrow, // flags + "Parameter", // name + 1, 0, 0, 1, 0, 0, // counts + index); // parameter }