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

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

Issue 2080113002: [turbofan] Introduce CheckUnless. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/simplified-operator.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-operator.cc
diff --git a/src/compiler/simplified-operator.cc b/src/compiler/simplified-operator.cc
index 355f8748f5e1ee15cfc590eacc6d6e4beeb843d3..a339b21843faea3de319395f066d00b15b054b16 100644
--- a/src/compiler/simplified-operator.cc
+++ b/src/compiler/simplified-operator.cc
@@ -366,6 +366,13 @@ struct SimplifiedOperatorGlobalCache final {
};
CheckIfOperator kCheckIf;
+ struct CheckUnlessOperator final : public Operator {
+ CheckUnlessOperator()
+ : Operator(IrOpcode::kCheckUnless, Operator::kPure, "CheckUnless", 1, 1,
+ 1, 0, 1, 0) {}
+ };
+ CheckUnlessOperator kCheckUnless;
+
template <PretenureFlag kPretenure>
struct AllocateOperator final : public Operator1<PretenureFlag> {
AllocateOperator()
@@ -442,6 +449,10 @@ const Operator* SimplifiedOperatorBuilder::CheckIf() {
return &cache_.kCheckIf;
}
+const Operator* SimplifiedOperatorBuilder::CheckUnless() {
+ return &cache_.kCheckUnless;
+}
+
const Operator* SimplifiedOperatorBuilder::ReferenceEqual(Type* type) {
return new (zone()) Operator(IrOpcode::kReferenceEqual,
Operator::kCommutative | Operator::kPure,
« no previous file with comments | « src/compiler/simplified-operator.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698