#include "src/compiler/dead-code-elimination.h"
#include "src/compiler/common-operator.h"
#include "src/compiler/graph.h"
#include "src/compiler/node-properties.h"
#include "src/compiler/operator-properties.h"
namespace v8 {
namespace internal {
namespace compiler {
DeadCodeElimination::DeadCodeElimination(Editor* editor, Graph* graph,
CommonOperatorBuilder* common,
Zone* temp_zone)
: … { … }
namespace {
bool NoReturn(Node* node) { … }
Node* FindDeadInput(Node* node) { … }
}
Reduction DeadCodeElimination::Reduce(Node* node) { … }
Reduction DeadCodeElimination::PropagateDeadControl(Node* node) { … }
Reduction DeadCodeElimination::ReduceEnd(Node* node) { … }
Reduction DeadCodeElimination::ReduceLoopOrMerge(Node* node) { … }
Reduction DeadCodeElimination::RemoveLoopExit(Node* node) { … }
Reduction DeadCodeElimination::ReduceNode(Node* node) { … }
Reduction DeadCodeElimination::ReducePhi(Node* node) { … }
Reduction DeadCodeElimination::ReduceEffectPhi(Node* node) { … }
Reduction DeadCodeElimination::ReducePureNode(Node* node) { … }
Reduction DeadCodeElimination::ReduceUnreachableOrIfException(Node* node) { … }
Reduction DeadCodeElimination::ReduceEffectNode(Node* node) { … }
Reduction DeadCodeElimination::ReduceDeoptimizeOrReturnOrTerminateOrTailCall(
Node* node) { … }
Reduction DeadCodeElimination::ReduceLoopExit(Node* node) { … }
Reduction DeadCodeElimination::ReduceBranchOrSwitch(Node* node) { … }
void DeadCodeElimination::TrimMergeOrPhi(Node* node, int size) { … }
Node* DeadCodeElimination::DeadValue(Node* node, MachineRepresentation rep) { … }
}
}
}