summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/preprocess-live-ranges.h
blob: aa852fc7ca40606959596efd900ab67fbad234c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// 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.

#ifndef V8_PREPROCESS_LIVE_RANGES_H_
#define V8_PREPROCESS_LIVE_RANGES_H_

#include "src/compiler/register-allocator.h"

namespace v8 {
namespace internal {
namespace compiler {


class PreprocessLiveRanges final {
 public:
  PreprocessLiveRanges(RegisterAllocationData* data, Zone* zone)
      : data_(data), zone_(zone) {}
  void PreprocessRanges();

 private:
  void SplitRangesAroundDeferredBlocks();

  RegisterAllocationData* data() { return data_; }
  Zone* zone() { return zone_; }

  RegisterAllocationData* data_;
  Zone* zone_;
};


}  // namespace compiler
}  // namespace internal
}  // namespace v8
#endif  // V8_PREPROCESS_LIVE_RANGES_H_