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_GVN_H_ | 5 #ifndef V8_HYDROGEN_GVN_H_ |
6 #define V8_HYDROGEN_GVN_H_ | 6 #define V8_HYDROGEN_GVN_H_ |
7 | 7 |
8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
9 #include "src/hydrogen.h" | 9 #include "src/hydrogen.h" |
10 #include "src/hydrogen-instructions.h" | 10 #include "src/hydrogen-instructions.h" |
11 #include "src/ostreams.h" | |
12 #include "src/zone.h" | 11 #include "src/zone.h" |
13 | 12 |
14 namespace v8 { | 13 namespace v8 { |
15 namespace internal { | 14 namespace internal { |
16 | 15 |
| 16 class OStream; |
| 17 |
17 // This class extends GVNFlagSet with additional "special" dynamic side effects, | 18 // This class extends GVNFlagSet with additional "special" dynamic side effects, |
18 // which can be used to represent side effects that cannot be expressed using | 19 // which can be used to represent side effects that cannot be expressed using |
19 // the GVNFlags of an HInstruction. These special side effects are tracked by a | 20 // the GVNFlags of an HInstruction. These special side effects are tracked by a |
20 // SideEffectsTracker (see below). | 21 // SideEffectsTracker (see below). |
21 class SideEffects V8_FINAL { | 22 class SideEffects V8_FINAL { |
22 public: | 23 public: |
23 static const int kNumberOfSpecials = 64 - kNumberOfFlags; | 24 static const int kNumberOfSpecials = 64 - kNumberOfFlags; |
24 | 25 |
25 SideEffects() : bits_(0) { | 26 SideEffects() : bits_(0) { |
26 ASSERT(kNumberOfFlags + kNumberOfSpecials == sizeof(bits_) * CHAR_BIT); | 27 ASSERT(kNumberOfFlags + kNumberOfSpecials == sizeof(bits_) * CHAR_BIT); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // Used when collecting side effects on paths from dominator to | 145 // Used when collecting side effects on paths from dominator to |
145 // dominated. | 146 // dominated. |
146 BitVector visited_on_paths_; | 147 BitVector visited_on_paths_; |
147 | 148 |
148 DISALLOW_COPY_AND_ASSIGN(HGlobalValueNumberingPhase); | 149 DISALLOW_COPY_AND_ASSIGN(HGlobalValueNumberingPhase); |
149 }; | 150 }; |
150 | 151 |
151 } } // namespace v8::internal | 152 } } // namespace v8::internal |
152 | 153 |
153 #endif // V8_HYDROGEN_GVN_H_ | 154 #endif // V8_HYDROGEN_GVN_H_ |
OLD | NEW |