Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: src/compiler/machine-node-factory.h

Issue 447203002: Add Uint32AddWithOverflow and Uint32SubWithOverflow machine operators. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/instruction-selector-impl.h ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/machine-node-factory.h
diff --git a/src/compiler/machine-node-factory.h b/src/compiler/machine-node-factory.h
index 8e11815aaea43759ec7e03d5fe5e062e94170625..36e4f6a00885432b7b067ee3082164287b534b77 100644
--- a/src/compiler/machine-node-factory.h
+++ b/src/compiler/machine-node-factory.h
@@ -202,12 +202,18 @@ class MachineNodeFactory {
Node* Int32AddWithOverflow(Node* a, Node* b) {
return NEW_NODE_2(MACHINE()->Int32AddWithOverflow(), a, b);
}
+ Node* Uint32AddWithOverflow(Node* a, Node* b) {
+ return NEW_NODE_2(MACHINE()->Uint32AddWithOverflow(), a, b);
+ }
Node* Int32Sub(Node* a, Node* b) {
return NEW_NODE_2(MACHINE()->Int32Sub(), a, b);
}
Node* Int32SubWithOverflow(Node* a, Node* b) {
return NEW_NODE_2(MACHINE()->Int32SubWithOverflow(), a, b);
}
+ Node* Uint32SubWithOverflow(Node* a, Node* b) {
+ return NEW_NODE_2(MACHINE()->Uint32SubWithOverflow(), a, b);
+ }
Node* Int32Mul(Node* a, Node* b) {
return NEW_NODE_2(MACHINE()->Int32Mul(), a, b);
}
« no previous file with comments | « src/compiler/instruction-selector-impl.h ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698