OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_LOAD_ELIMINATION_H_ | 5 #ifndef V8_COMPILER_LOAD_ELIMINATION_H_ |
6 #define V8_COMPILER_LOAD_ELIMINATION_H_ | 6 #define V8_COMPILER_LOAD_ELIMINATION_H_ |
7 | 7 |
8 #include "src/compiler/graph-reducer.h" | 8 #include "src/compiler/graph-reducer.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 Reduction ReduceStoreTypedElement(Node* node); | 207 Reduction ReduceStoreTypedElement(Node* node); |
208 Reduction ReduceEffectPhi(Node* node); | 208 Reduction ReduceEffectPhi(Node* node); |
209 Reduction ReduceStart(Node* node); | 209 Reduction ReduceStart(Node* node); |
210 Reduction ReduceOtherNode(Node* node); | 210 Reduction ReduceOtherNode(Node* node); |
211 | 211 |
212 Reduction UpdateState(Node* node, AbstractState const* state); | 212 Reduction UpdateState(Node* node, AbstractState const* state); |
213 | 213 |
214 AbstractState const* ComputeLoopState(Node* node, | 214 AbstractState const* ComputeLoopState(Node* node, |
215 AbstractState const* state) const; | 215 AbstractState const* state) const; |
216 | 216 |
| 217 static int FieldIndexOf(int offset); |
217 static int FieldIndexOf(FieldAccess const& access); | 218 static int FieldIndexOf(FieldAccess const& access); |
218 | 219 |
219 CommonOperatorBuilder* common() const; | 220 CommonOperatorBuilder* common() const; |
220 AbstractState const* empty_state() const { return &empty_state_; } | 221 AbstractState const* empty_state() const { return &empty_state_; } |
221 Graph* graph() const; | 222 Graph* graph() const; |
222 JSGraph* jsgraph() const { return jsgraph_; } | 223 JSGraph* jsgraph() const { return jsgraph_; } |
223 Zone* zone() const { return node_states_.zone(); } | 224 Zone* zone() const { return node_states_.zone(); } |
224 | 225 |
225 AbstractState const empty_state_; | 226 AbstractState const empty_state_; |
226 AbstractStateForEffectNodes node_states_; | 227 AbstractStateForEffectNodes node_states_; |
227 JSGraph* const jsgraph_; | 228 JSGraph* const jsgraph_; |
228 | 229 |
229 DISALLOW_COPY_AND_ASSIGN(LoadElimination); | 230 DISALLOW_COPY_AND_ASSIGN(LoadElimination); |
230 }; | 231 }; |
231 | 232 |
232 } // namespace compiler | 233 } // namespace compiler |
233 } // namespace internal | 234 } // namespace internal |
234 } // namespace v8 | 235 } // namespace v8 |
235 | 236 |
236 #endif // V8_COMPILER_LOAD_ELIMINATION_H_ | 237 #endif // V8_COMPILER_LOAD_ELIMINATION_H_ |
OLD | NEW |