| 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_LIVENESS_ANAYZER_H_ | 5 #ifndef V8_COMPILER_LIVENESS_ANAYZER_H_ |
| 6 #define V8_COMPILER_LIVENESS_ANAYZER_H_ | 6 #define V8_COMPILER_LIVENESS_ANAYZER_H_ |
| 7 | 7 |
| 8 #include "src/bit-vector.h" | 8 #include "src/bit-vector.h" |
| 9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
| 10 #include "src/globals.h" |
| 10 #include "src/zone/zone-containers.h" | 11 #include "src/zone/zone-containers.h" |
| 11 | 12 |
| 12 namespace v8 { | 13 namespace v8 { |
| 13 namespace internal { | 14 namespace internal { |
| 14 namespace compiler { | 15 namespace compiler { |
| 15 | 16 |
| 16 class LivenessAnalyzerBlock; | 17 class LivenessAnalyzerBlock; |
| 17 class Node; | 18 class Node; |
| 18 class StateValuesCache; | 19 class StateValuesCache; |
| 19 | 20 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 43 Node* replacement_node_; | 44 Node* replacement_node_; |
| 44 // Reference to state values cache so that we can create state values | 45 // Reference to state values cache so that we can create state values |
| 45 // nodes. | 46 // nodes. |
| 46 StateValuesCache* state_values_cache_; | 47 StateValuesCache* state_values_cache_; |
| 47 | 48 |
| 48 Zone* local_zone_; | 49 Zone* local_zone_; |
| 49 BitVector permanently_live_; | 50 BitVector permanently_live_; |
| 50 NodeVector inputs_buffer_; | 51 NodeVector inputs_buffer_; |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 | 54 class V8_EXPORT_PRIVATE LivenessAnalyzer { |
| 54 class LivenessAnalyzer { | |
| 55 public: | 55 public: |
| 56 LivenessAnalyzer(size_t local_count, Zone* zone); | 56 LivenessAnalyzer(size_t local_count, Zone* zone); |
| 57 | 57 |
| 58 LivenessAnalyzerBlock* NewBlock(); | 58 LivenessAnalyzerBlock* NewBlock(); |
| 59 LivenessAnalyzerBlock* NewBlock(LivenessAnalyzerBlock* predecessor); | 59 LivenessAnalyzerBlock* NewBlock(LivenessAnalyzerBlock* predecessor); |
| 60 | 60 |
| 61 void Run(NonLiveFrameStateSlotReplacer* relaxer); | 61 void Run(NonLiveFrameStateSlotReplacer* relaxer); |
| 62 | 62 |
| 63 Zone* zone() { return zone_; } | 63 Zone* zone() { return zone_; } |
| 64 | 64 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 size_t id_; | 142 size_t id_; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 | 145 |
| 146 } // namespace compiler | 146 } // namespace compiler |
| 147 } // namespace internal | 147 } // namespace internal |
| 148 } // namespace v8 | 148 } // namespace v8 |
| 149 | 149 |
| 150 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 150 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |