Sha256: aacd127e174eba60ef508453b93c9151737e6cfcac5adac35e7aaa796cdd53fc

Contents?: true

Size: 836 Bytes

Versions: 10

Compression:

Stored size: 836 Bytes

Contents

// Copyright 2013 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.

#ifndef V8_CRANKSHAFT_HYDROGEN_DCE_H_
#define V8_CRANKSHAFT_HYDROGEN_DCE_H_

#include "src/crankshaft/hydrogen.h"

namespace v8 {
namespace internal {


class HDeadCodeEliminationPhase : public HPhase {
 public:
  explicit HDeadCodeEliminationPhase(HGraph* graph)
      : HPhase("H_Dead code elimination", graph) { }

  void Run() {
    MarkLiveInstructions();
    RemoveDeadInstructions();
  }

 private:
  void MarkLive(HValue* instr, ZoneList<HValue*>* worklist);
  void PrintLive(HValue* ref, HValue* instr);
  void MarkLiveInstructions();
  void RemoveDeadInstructions();
};


}  // namespace internal
}  // namespace v8

#endif  // V8_CRANKSHAFT_HYDROGEN_DCE_H_

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
libv8-6.0.286.54.1 vendor/v8/src/crankshaft/hydrogen-dce.h
libv8-6.0.286.54.0 vendor/v8/src/crankshaft/hydrogen-dce.h
libv8-6.0.286.54.0beta2 vendor/v8/src/crankshaft/hydrogen-dce.h
libv8-6.0.286.54.0beta1 vendor/v8/src/crankshaft/hydrogen-dce.h
libv8-6.0.286.44.0beta1 vendor/v8/src/crankshaft/hydrogen-dce.h
node-compiler-0.9.1 vendor/node/deps/v8/src/crankshaft/hydrogen-dce.h
node-compiler-0.9.0 vendor/node-v7.2.1/deps/v8/src/crankshaft/hydrogen-dce.h
node-compiler-0.8.0 vendor/node-v7.2.0/deps/v8/src/crankshaft/hydrogen-dce.h
node-compiler-0.7.0 vendor/node-v7.1.0/deps/v8/src/crankshaft/hydrogen-dce.h
node-compiler-0.7.0 vendor/node-v6.9.1/deps/v8/src/crankshaft/hydrogen-dce.h