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

Side by Side Diff: src/compiler/instruction-selector.h

Issue 931623002: [turbofan] Optimize certain chains of Branch into a Switch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addrssed comments. Created 5 years, 10 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
« no previous file with comments | « src/compiler/instruction-codes.h ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_INSTRUCTION_SELECTOR_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 void VisitFinish(Node* node); 196 void VisitFinish(Node* node);
197 void VisitParameter(Node* node); 197 void VisitParameter(Node* node);
198 void VisitOsrValue(Node* node); 198 void VisitOsrValue(Node* node);
199 void VisitPhi(Node* node); 199 void VisitPhi(Node* node);
200 void VisitProjection(Node* node); 200 void VisitProjection(Node* node);
201 void VisitConstant(Node* node); 201 void VisitConstant(Node* node);
202 void VisitCall(Node* call); 202 void VisitCall(Node* call);
203 void VisitGoto(BasicBlock* target); 203 void VisitGoto(BasicBlock* target);
204 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch); 204 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch);
205 void VisitSwitch(Node* node, BasicBlock** branches, size_t branch_count); 205 void VisitSwitch(Node* node, BasicBlock* default_branch,
206 BasicBlock** case_branches, int32_t* case_values,
207 size_t case_count, int32_t min_value, int32_t max_value);
206 void VisitReturn(Node* value); 208 void VisitReturn(Node* value);
207 void VisitThrow(Node* value); 209 void VisitThrow(Node* value);
208 void VisitDeoptimize(Node* deopt); 210 void VisitDeoptimize(Node* deopt);
209 211
210 // =========================================================================== 212 // ===========================================================================
211 213
212 Schedule* schedule() const { return schedule_; } 214 Schedule* schedule() const { return schedule_; }
213 Linkage* linkage() const { return linkage_; } 215 Linkage* linkage() const { return linkage_; }
214 InstructionSequence* sequence() const { return sequence_; } 216 InstructionSequence* sequence() const { return sequence_; }
215 Zone* instruction_zone() const { return sequence()->zone(); } 217 Zone* instruction_zone() const { return sequence()->zone(); }
(...skipping 12 matching lines...) Expand all
228 BoolVector defined_; 230 BoolVector defined_;
229 BoolVector used_; 231 BoolVector used_;
230 IntVector virtual_registers_; 232 IntVector virtual_registers_;
231 }; 233 };
232 234
233 } // namespace compiler 235 } // namespace compiler
234 } // namespace internal 236 } // namespace internal
235 } // namespace v8 237 } // namespace v8
236 238
237 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ 239 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-codes.h ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698