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

Unified Diff: src/compiler/simplified-operator.h

Issue 2035383003: [turbofan] Type feedback for numeric comparisons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes Created 4 years, 6 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/simplified-operator.h
diff --git a/src/compiler/simplified-operator.h b/src/compiler/simplified-operator.h
index 296f8233478437d309126847166c0d9451ca7a59..dd174f3e5b6ce9f965e8183b3c1d043ccfc4cf50 100644
--- a/src/compiler/simplified-operator.h
+++ b/src/compiler/simplified-operator.h
@@ -107,6 +107,8 @@ Type* TypeOf(const Operator* op) WARN_UNUSED_RESULT;
BinaryOperationHints::Hint BinaryOperationHintOf(const Operator* op);
+CompareOperationHints::Hint CompareOperationHintOf(const Operator* op);
+
// Interface for building simplified operators, which represent the
// medium-level operations of V8, including adding numbers, allocating objects,
// indexing into objects and arrays, etc.
@@ -164,6 +166,11 @@ class SimplifiedOperatorBuilder final : public ZoneObject {
const Operator* SpeculativeNumberAdd(BinaryOperationHints::Hint hint);
const Operator* SpeculativeNumberSubtract(BinaryOperationHints::Hint hint);
+ const Operator* SpeculativeNumberLessThan(CompareOperationHints::Hint hint);
+ const Operator* SpeculativeNumberLessThanOrEqual(
+ CompareOperationHints::Hint hint);
+ const Operator* SpeculativeNumberEqual(CompareOperationHints::Hint hint);
+
const Operator* ReferenceEqual(Type* type);
const Operator* StringEqual();

Powered by Google App Engine
This is Rietveld 408576698