OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_HYDROGEN_ENVIRONMENT_LIVENESS_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_ENVIRONMENT_LIVENESS_H_ |
6 #define V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_ENVIRONMENT_LIVENESS_H_ |
7 | 7 |
8 | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/hydrogen.h" | |
10 | 9 |
11 namespace v8 { | 10 namespace v8 { |
12 namespace internal { | 11 namespace internal { |
13 | 12 |
14 | 13 |
15 // Trims live ranges of environment slots by doing explicit liveness analysis. | 14 // Trims live ranges of environment slots by doing explicit liveness analysis. |
16 // Values in the environment are kept alive by every subsequent LInstruction | 15 // Values in the environment are kept alive by every subsequent LInstruction |
17 // that is assigned an LEnvironment, which creates register pressure and | 16 // that is assigned an LEnvironment, which creates register pressure and |
18 // unnecessary spill slot moves. Therefore it is beneficial to trim the | 17 // unnecessary spill slot moves. Therefore it is beneficial to trim the |
19 // live ranges of environment slots by zapping them with a constant after | 18 // live ranges of environment slots by zapping them with a constant after |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 HSimulate* last_simulate_; | 58 HSimulate* last_simulate_; |
60 BitVector went_live_since_last_simulate_; | 59 BitVector went_live_since_last_simulate_; |
61 | 60 |
62 DISALLOW_COPY_AND_ASSIGN(HEnvironmentLivenessAnalysisPhase); | 61 DISALLOW_COPY_AND_ASSIGN(HEnvironmentLivenessAnalysisPhase); |
63 }; | 62 }; |
64 | 63 |
65 | 64 |
66 } // namespace internal | 65 } // namespace internal |
67 } // namespace v8 | 66 } // namespace v8 |
68 | 67 |
69 #endif /* V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_ */ | 68 #endif // V8_CRANKSHAFT_HYDROGEN_ENVIRONMENT_LIVENESS_H_ |
OLD | NEW |