Index: src/compiler/common-operator.cc |
diff --git a/src/compiler/common-operator.cc b/src/compiler/common-operator.cc |
index bfe946da2f1a95f6f8d8925c97fc1d61fd997fc5..51f93da3b4d30d16913fa72a7447f82e78a10cbc 100644 |
--- a/src/compiler/common-operator.cc |
+++ b/src/compiler/common-operator.cc |
@@ -671,6 +671,15 @@ const Operator* CommonOperatorBuilder::EffectPhi(int effect_input_count) { |
} |
+const Operator* CommonOperatorBuilder::Guard(Type* type) { |
+ return new (zone()) Operator1<Type*>( // -- |
+ IrOpcode::kGuard, Operator::kKontrol, // opcode |
+ "Guard", // name |
+ 1, 0, 1, 1, 0, 0, // counts |
+ type); // parameter |
+} |
+ |
+ |
const Operator* CommonOperatorBuilder::EffectSet(int arguments) { |
DCHECK(arguments > 1); // Disallow empty/singleton sets. |
return new (zone()) Operator( // -- |