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