Index: src/compiler/machine-node-factory.h |
diff --git a/src/compiler/machine-node-factory.h b/src/compiler/machine-node-factory.h |
index b0e153181feb8d143c2e6341b54dc6319c7c54f1..94d23f01b70826e2eb2fbd164acf751f85557a3b 100644 |
--- a/src/compiler/machine-node-factory.h |
+++ b/src/compiler/machine-node-factory.h |
@@ -195,6 +195,12 @@ class MachineNodeFactory { |
Node* Int32Add(Node* a, Node* b) { |
return NEW_NODE_2(MACHINE()->Int32Add(), a, b); |
} |
+ void Int32AddWithOverflow(Node* a, Node* b, Node** val_return, |
+ Node** ovf_return) { |
+ Node* add = NEW_NODE_2(MACHINE()->Int32AddWithOverflow(), a, b); |
+ if (val_return) *val_return = NEW_NODE_1(COMMON()->Projection(0), add); |
+ if (ovf_return) *ovf_return = NEW_NODE_1(COMMON()->Projection(1), add); |
+ } |
Node* Int32Sub(Node* a, Node* b) { |
return NEW_NODE_2(MACHINE()->Int32Sub(), a, b); |
} |