diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc index f2cf50f3f1..bee12a0730 100644 --- a/src/compiler/pipeline.cc +++ b/src/compiler/pipeline.cc @@ -939,12 +939,8 @@ struct RepresentationSelectionPhase { static const char* phase_name() { return "representation selection"; } void Run(PipelineData* data, Zone* temp_zone) { - SimplifiedLowering::Flags flags = - data->info()->is_type_feedback_enabled() - ? SimplifiedLowering::kTypeFeedbackEnabled - : SimplifiedLowering::kNoFlag; SimplifiedLowering lowering(data->jsgraph(), temp_zone, - data->source_positions(), flags); + data->source_positions()); lowering.LowerAllNodes(); } }; diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc index 1bf1e4fb3e..d1f6c8743b 100644 --- a/src/compiler/simplified-lowering.cc +++ b/src/compiler/simplified-lowering.cc @@ -2335,12 +2335,10 @@ class RepresentationSelector { }; SimplifiedLowering::SimplifiedLowering(JSGraph* jsgraph, Zone* zone, - SourcePositionTable* source_positions, - Flags flags) + SourcePositionTable* source_positions) : jsgraph_(jsgraph), zone_(zone), type_cache_(TypeCache::Get()), - flags_(flags), source_positions_(source_positions) {} void SimplifiedLowering::LowerAllNodes() { diff --git a/src/compiler/simplified-lowering.h b/src/compiler/simplified-lowering.h index c4ac37a9fc..aebc9bd3cd 100644 --- a/src/compiler/simplified-lowering.h +++ b/src/compiler/simplified-lowering.h @@ -5,7 +5,6 @@ #ifndef V8_COMPILER_SIMPLIFIED_LOWERING_H_ #define V8_COMPILER_SIMPLIFIED_LOWERING_H_ -#include "src/base/flags.h" #include "src/compiler/js-graph.h" #include "src/compiler/machine-operator.h" #include "src/compiler/node.h" @@ -27,11 +26,8 @@ class SourcePositionTable; class SimplifiedLowering final { public: - enum Flag { kNoFlag = 0u, kTypeFeedbackEnabled = 1u << 0 }; - typedef base::Flags Flags; SimplifiedLowering(JSGraph* jsgraph, Zone* zone, - SourcePositionTable* source_positions, - Flags flags = kNoFlag); + SourcePositionTable* source_positions); ~SimplifiedLowering() {} void LowerAllNodes(); @@ -47,15 +43,12 @@ class SimplifiedLowering final { void DoStoreBuffer(Node* node); void DoShift(Node* node, Operator const* op, Type* rhs_type); - Flags flags() const { return flags_; } - private: JSGraph* const jsgraph_; Zone* const zone_; TypeCache const& type_cache_; SetOncePointer to_number_code_; SetOncePointer to_number_operator_; - Flags flags_; // TODO(danno): SimplifiedLowering shouldn't know anything about the source // positions table, but must for now since there currently is no other way to