chromium/v8/src/compiler/dead-code-elimination.cc

// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// True if we can guarantee that {node} will never actually produce a value or
// effect.
bool NoReturn(Node* node) {}

Node* FindDeadInput(Node* node) {}

}  // namespace

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) {}

}  // namespace compiler
}  // namespace internal
}  // namespace v8