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

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

Issue 2785773002: [turbofan] introduce Int32/64AbsWithOverflow optional operator (Closed)
Patch Set: add base impl 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
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/s390/code-generator-s390.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/s390/code-generator-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698