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

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

Issue 1718483002: Revert of [turbofan] Connect ObjectIsNumber to effect and control chains. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@move-change-low
Patch Set: Created 4 years, 10 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-lowering.cc ('k') | src/compiler/wasm-compiler.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 a5dcbba78c76f7b26a35535fc26bbbc4354a2615..c7abe9c96ecd3a5d890b7e5999728f7e41cd2c76 100644
--- a/src/compiler/simplified-operator.cc
+++ b/src/compiler/simplified-operator.cc
@@ -186,6 +186,7 @@
V(ChangeFloat64ToTagged, Operator::kNoProperties, 1) \
V(ChangeBoolToBit, Operator::kNoProperties, 1) \
V(ChangeBitToBool, Operator::kNoProperties, 1) \
+ V(ObjectIsNumber, Operator::kNoProperties, 1) \
V(ObjectIsReceiver, Operator::kNoProperties, 1) \
V(ObjectIsSmi, Operator::kNoProperties, 1)
@@ -193,8 +194,6 @@
V(StringEqual, Operator::kCommutative, 2) \
V(StringLessThan, Operator::kNoThrow, 2) \
V(StringLessThanOrEqual, Operator::kNoThrow, 2)
-
-#define STATEFUL_OP_LIST(V) V(ObjectIsNumber)
struct SimplifiedOperatorGlobalCache final {
#define PURE(Name, properties, input_count) \
@@ -206,16 +205,6 @@
Name##Operator k##Name;
PURE_OP_LIST(PURE)
#undef PURE
-
-#define STATEFUL(Name) \
- struct Name##Operator final : public Operator { \
- Name##Operator() \
- : Operator(IrOpcode::k##Name, Operator::kNoProperties, #Name, 1, 1, 1, \
- 1, 1, 1) {} \
- }; \
- Name##Operator k##Name;
- STATEFUL_OP_LIST(STATEFUL)
-#undef STATEFUL
#define NO_THROW(Name, properties, input_count) \
struct Name##Operator final : public Operator { \
@@ -263,10 +252,6 @@
NO_THROW_OP_LIST(GET_FROM_CACHE)
#undef GET_FROM_CACHE
-#define GET_FROM_CACHE(Name) \
- const Operator* SimplifiedOperatorBuilder::Name() { return &cache_.k##Name; }
-STATEFUL_OP_LIST(GET_FROM_CACHE)
-#undef GET_FROM_CACHE
const Operator* SimplifiedOperatorBuilder::ReferenceEqual(Type* type) {
return new (zone()) Operator(IrOpcode::kReferenceEqual,
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698