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

Unified Diff: src/compiler/raw-machine-assembler.h

Issue 2785773002: [turbofan] introduce Int32/64AbsWithOverflow optional operator (Closed)
Patch Set: Created 3 years, 9 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
Index: src/compiler/raw-machine-assembler.h
diff --git a/src/compiler/raw-machine-assembler.h b/src/compiler/raw-machine-assembler.h
index ac1af6a63de139679de420e24f29d82f5e2937f4..208790210325e4bdfb152f453633670a33c4febe 100644
--- a/src/compiler/raw-machine-assembler.h
+++ b/src/compiler/raw-machine-assembler.h
@@ -439,6 +439,19 @@ class V8_EXPORT_PRIVATE RawMachineAssembler {
#undef UINTPTR_BINOP
+ Node* Int32AbsWithOverflow(Node* a) {
+ return AddNode(machine()->Int32AbsWithOverflow().op(), a);
+ }
+
+ Node* Int64AbsWithOverflow(Node* a) {
+ return AddNode(machine()->Int64AbsWithOverflow().op(), a);
+ }
+
+ Node* IntPtrAbsWithOverflow(Node* a) {
+ return kPointerSize == 8 ? Int64AbsWithOverflow(a)
+ : Int32AbsWithOverflow(a);
+ }
+
Node* Float32Add(Node* a, Node* b) {
return AddNode(machine()->Float32Add(), a, b);
}

Powered by Google App Engine
This is Rietveld 408576698