Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: src/compiler/load-elimination.h

Issue 2196653002: [turbofan] Introduce a dedicated CheckMaps simplified operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@TurboFan_JSNativeContextSpecialization_NonElementKeyedAccess
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 explicit AbstractStateForEffectNodes(Zone* zone) : info_for_node_(zone) {} 142 explicit AbstractStateForEffectNodes(Zone* zone) : info_for_node_(zone) {}
143 AbstractState const* Get(Node* node) const; 143 AbstractState const* Get(Node* node) const;
144 void Set(Node* node, AbstractState const* state); 144 void Set(Node* node, AbstractState const* state);
145 145
146 Zone* zone() const { return info_for_node_.get_allocator().zone(); } 146 Zone* zone() const { return info_for_node_.get_allocator().zone(); }
147 147
148 private: 148 private:
149 ZoneVector<AbstractState const*> info_for_node_; 149 ZoneVector<AbstractState const*> info_for_node_;
150 }; 150 };
151 151
152 Reduction ReduceCheckMaps(Node* node);
153 Reduction ReduceTransitionElementsKind(Node* node);
152 Reduction ReduceLoadField(Node* node); 154 Reduction ReduceLoadField(Node* node);
153 Reduction ReduceStoreField(Node* node); 155 Reduction ReduceStoreField(Node* node);
154 Reduction ReduceLoadElement(Node* node); 156 Reduction ReduceLoadElement(Node* node);
155 Reduction ReduceStoreElement(Node* node); 157 Reduction ReduceStoreElement(Node* node);
156 Reduction ReduceEffectPhi(Node* node); 158 Reduction ReduceEffectPhi(Node* node);
157 Reduction ReduceStart(Node* node); 159 Reduction ReduceStart(Node* node);
158 Reduction ReduceOtherNode(Node* node); 160 Reduction ReduceOtherNode(Node* node);
159 161
160 Reduction UpdateState(Node* node, AbstractState const* state); 162 Reduction UpdateState(Node* node, AbstractState const* state);
161 163
162 AbstractState const* ComputeLoopState(Node* node, 164 AbstractState const* ComputeLoopState(Node* node,
163 AbstractState const* state) const; 165 AbstractState const* state) const;
164 166
165 static int FieldIndexOf(FieldAccess const& access); 167 static int FieldIndexOf(FieldAccess const& access);
166 168
167 AbstractState const* empty_state() const { return &empty_state_; } 169 AbstractState const* empty_state() const { return &empty_state_; }
168 Zone* zone() const { return node_states_.zone(); } 170 Zone* zone() const { return node_states_.zone(); }
169 171
170 AbstractState const empty_state_; 172 AbstractState const empty_state_;
171 AbstractStateForEffectNodes node_states_; 173 AbstractStateForEffectNodes node_states_;
172 174
173 DISALLOW_COPY_AND_ASSIGN(LoadElimination); 175 DISALLOW_COPY_AND_ASSIGN(LoadElimination);
174 }; 176 };
175 177
176 } // namespace compiler 178 } // namespace compiler
177 } // namespace internal 179 } // namespace internal
178 } // namespace v8 180 } // namespace v8
179 181
180 #endif // V8_COMPILER_LOAD_ELIMINATION_H_ 182 #endif // V8_COMPILER_LOAD_ELIMINATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698