OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ | 5 #ifndef V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ |
6 #define V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ | 6 #define V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ |
7 | 7 |
| 8 #include "src/bit-vector.h" |
8 #include "src/compiler/escape-analysis.h" | 9 #include "src/compiler/escape-analysis.h" |
9 #include "src/compiler/graph-reducer.h" | 10 #include "src/compiler/graph-reducer.h" |
10 | 11 |
| 12 |
11 namespace v8 { | 13 namespace v8 { |
12 namespace internal { | 14 namespace internal { |
13 | 15 |
14 // Forward declarations. | 16 // Forward declarations. |
15 class Counters; | 17 class Counters; |
16 | 18 |
17 | 19 |
18 namespace compiler { | 20 namespace compiler { |
19 | 21 |
20 // Forward declarations. | 22 // Forward declarations. |
(...skipping 21 matching lines...) Expand all Loading... |
42 bool multiple_users); | 44 bool multiple_users); |
43 | 45 |
44 JSGraph* jsgraph() const { return jsgraph_; } | 46 JSGraph* jsgraph() const { return jsgraph_; } |
45 EscapeAnalysis* escape_analysis() const { return escape_analysis_; } | 47 EscapeAnalysis* escape_analysis() const { return escape_analysis_; } |
46 Zone* zone() const { return zone_; } | 48 Zone* zone() const { return zone_; } |
47 Counters* counters() const; | 49 Counters* counters() const; |
48 | 50 |
49 JSGraph* const jsgraph_; | 51 JSGraph* const jsgraph_; |
50 EscapeAnalysis* escape_analysis_; | 52 EscapeAnalysis* escape_analysis_; |
51 Zone* const zone_; | 53 Zone* const zone_; |
| 54 BitVector visited_; |
52 | 55 |
53 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysisReducer); | 56 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysisReducer); |
54 }; | 57 }; |
55 | 58 |
56 } // namespace compiler | 59 } // namespace compiler |
57 } // namespace internal | 60 } // namespace internal |
58 } // namespace v8 | 61 } // namespace v8 |
59 | 62 |
60 #endif // V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ | 63 #endif // V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ |
OLD | NEW |