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/bit-vector.h" |
9 #include "src/compiler/escape-analysis.h" | 9 #include "src/compiler/escape-analysis.h" |
10 #include "src/compiler/graph-reducer.h" | 10 #include "src/compiler/graph-reducer.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 // Forward declarations. | 22 // Forward declarations. |
23 class JSGraph; | 23 class JSGraph; |
24 | 24 |
25 | 25 |
26 class EscapeAnalysisReducer final : public AdvancedReducer { | 26 class EscapeAnalysisReducer final : public AdvancedReducer { |
27 public: | 27 public: |
28 EscapeAnalysisReducer(Editor* editor, JSGraph* jsgraph, | 28 EscapeAnalysisReducer(Editor* editor, JSGraph* jsgraph, |
29 EscapeAnalysis* escape_analysis, Zone* zone); | 29 EscapeAnalysis* escape_analysis, Zone* zone); |
30 | 30 |
31 Reduction Reduce(Node* node) final; | 31 Reduction Reduce(Node* node) final; |
32 void SetExistsVirtualAllocate(bool exists) { | |
33 exists_virtual_allocate_ = exists; | |
34 } | |
35 void VerifyReplacement() const; | 32 void VerifyReplacement() const; |
36 | 33 |
37 private: | 34 private: |
38 Reduction ReduceLoad(Node* node); | 35 Reduction ReduceLoad(Node* node); |
39 Reduction ReduceStore(Node* node); | 36 Reduction ReduceStore(Node* node); |
40 Reduction ReduceAllocate(Node* node); | 37 Reduction ReduceAllocate(Node* node); |
41 Reduction ReduceFinishRegion(Node* node); | 38 Reduction ReduceFinishRegion(Node* node); |
42 Reduction ReduceReferenceEqual(Node* node); | 39 Reduction ReduceReferenceEqual(Node* node); |
43 Reduction ReduceObjectIsSmi(Node* node); | 40 Reduction ReduceObjectIsSmi(Node* node); |
44 Reduction ReduceFrameStateUses(Node* node); | 41 Reduction ReduceFrameStateUses(Node* node); |
(...skipping 16 matching lines...) Expand all Loading... |
61 bool exists_virtual_allocate_; | 58 bool exists_virtual_allocate_; |
62 | 59 |
63 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysisReducer); | 60 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysisReducer); |
64 }; | 61 }; |
65 | 62 |
66 } // namespace compiler | 63 } // namespace compiler |
67 } // namespace internal | 64 } // namespace internal |
68 } // namespace v8 | 65 } // namespace v8 |
69 | 66 |
70 #endif // V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ | 67 #endif // V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ |
OLD | NEW |