diff options
Diffstat (limited to 'deps/v8/src/compiler/checkpoint-elimination.h')
-rw-r--r-- | deps/v8/src/compiler/checkpoint-elimination.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/deps/v8/src/compiler/checkpoint-elimination.h b/deps/v8/src/compiler/checkpoint-elimination.h new file mode 100644 index 0000000000..edaa0e7734 --- /dev/null +++ b/deps/v8/src/compiler/checkpoint-elimination.h @@ -0,0 +1,30 @@ +// Copyright 2016 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_COMPILER_CHECKPOINT_ELIMINATION_H_ +#define V8_COMPILER_CHECKPOINT_ELIMINATION_H_ + +#include "src/compiler/graph-reducer.h" + +namespace v8 { +namespace internal { +namespace compiler { + +// Performs elimination of redundant checkpoints within the graph. +class CheckpointElimination final : public AdvancedReducer { + public: + explicit CheckpointElimination(Editor* editor); + ~CheckpointElimination() final {} + + Reduction Reduce(Node* node) final; + + private: + Reduction ReduceCheckpoint(Node* node); +}; + +} // namespace compiler +} // namespace internal +} // namespace v8 + +#endif // V8_COMPILER_CHECKPOINT_ELIMINATION_H_ |