Index: src/compiler/machine-operator.h |
diff --git a/src/compiler/machine-operator.h b/src/compiler/machine-operator.h |
index deda9581ffde34a94aa3ba9880ac59076487a023..7fc9b933067b2a35b11fe0bc76b583203ae662cb 100644 |
--- a/src/compiler/machine-operator.h |
+++ b/src/compiler/machine-operator.h |
@@ -74,6 +74,10 @@ class MachineOperatorBuilder { |
SIMPLE(name, \ |
Operator::kAssociative | Operator::kCommutative | Operator::kPure, 2, \ |
1) |
+#define BINOP_ACO(name) \ |
+ SIMPLE(name, \ |
+ Operator::kAssociative | Operator::kCommutative | Operator::kPure, 2, \ |
+ 2) |
#define UNOP(name) SIMPLE(name, Operator::kPure, 1, 1) |
#define WORD_SIZE(x) return is64() ? Word64##x() : Word32##x() |
@@ -113,6 +117,7 @@ class MachineOperatorBuilder { |
Operator* Word64Equal() { BINOP_C(Word64Equal); } |
Operator* Int32Add() { BINOP_AC(Int32Add); } |
+ Operator* Int32AddWithOverflow() { BINOP_ACO(Int32AddWithOverflow); } |
Operator* Int32Sub() { BINOP(Int32Sub); } |
Operator* Int32Mul() { BINOP_AC(Int32Mul); } |
Operator* Int32Div() { BINOP(Int32Div); } |