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

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

Issue 2035383003: [turbofan] Type feedback for numeric comparisons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase, pure ops 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
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | src/compiler/js-operator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-operator.h
diff --git a/src/compiler/js-operator.h b/src/compiler/js-operator.h
index 9721951396ef320b4fde8e263ea4a666734af6fc..8390cbd902899b2f2a4516993c3635741397a147 100644
--- a/src/compiler/js-operator.h
+++ b/src/compiler/js-operator.h
@@ -376,6 +376,8 @@ const CreateLiteralParameters& CreateLiteralParametersOf(const Operator* op);
const BinaryOperationHints& BinaryOperationHintsOf(const Operator* op);
+const CompareOperationHints& CompareOperationHintsOf(const Operator* op);
+
// Interface for building JavaScript-level operators, e.g. directly from the
// AST. Most operators have no parameters, thus can be globally shared for all
// graphs.
@@ -383,14 +385,14 @@ class JSOperatorBuilder final : public ZoneObject {
public:
explicit JSOperatorBuilder(Zone* zone);
- const Operator* Equal();
- const Operator* NotEqual();
- const Operator* StrictEqual();
- const Operator* StrictNotEqual();
- const Operator* LessThan();
- const Operator* GreaterThan();
- const Operator* LessThanOrEqual();
- const Operator* GreaterThanOrEqual();
+ const Operator* Equal(CompareOperationHints hints);
+ const Operator* NotEqual(CompareOperationHints hints);
+ const Operator* StrictEqual(CompareOperationHints hints);
+ const Operator* StrictNotEqual(CompareOperationHints hints);
+ const Operator* LessThan(CompareOperationHints hints);
+ const Operator* GreaterThan(CompareOperationHints hints);
+ const Operator* LessThanOrEqual(CompareOperationHints hints);
+ const Operator* GreaterThanOrEqual(CompareOperationHints hints);
const Operator* BitwiseOr(BinaryOperationHints hints);
const Operator* BitwiseXor(BinaryOperationHints hints);
const Operator* BitwiseAnd(BinaryOperationHints hints);
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | src/compiler/js-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698