Index: src/compiler/simplified-operator.cc |
diff --git a/src/compiler/simplified-operator.cc b/src/compiler/simplified-operator.cc |
index 8e18b673b616559eabf8b743348c6163d05ddcbc..66cfbb7be77a3fad7b5a795920115a72a6ad3ff7 100644 |
--- a/src/compiler/simplified-operator.cc |
+++ b/src/compiler/simplified-operator.cc |
@@ -507,6 +507,18 @@ const Operator* SimplifiedOperatorBuilder::CheckedInt32Mul( |
return nullptr; |
} |
+const Operator* SimplifiedOperatorBuilder::CheckMaps(int map_input_count) { |
+ // TODO(bmeurer): Cache the most important versions of this operator. |
+ DCHECK_LT(0, map_input_count); |
+ int const value_input_count = 1 + map_input_count; |
+ return new (zone()) Operator1<int>( // -- |
+ IrOpcode::kCheckMaps, // opcode |
+ Operator::kNoThrow | Operator::kNoWrite, // flags |
+ "CheckMaps", // name |
+ value_input_count, 1, 1, 0, 1, 0, // counts |
+ map_input_count); // parameter |
+} |
+ |
const Operator* SimplifiedOperatorBuilder::CheckFloat64Hole( |
CheckFloat64HoleMode mode) { |
switch (mode) { |