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

Side by Side Diff: src/compiler/opcodes.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-selector.cc ('k') | src/compiler/operator.h » ('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 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_COMPILER_OPCODES_H_ 5 #ifndef V8_COMPILER_OPCODES_H_
6 #define V8_COMPILER_OPCODES_H_ 6 #define V8_COMPILER_OPCODES_H_
7 7
8 // Opcodes for control operators. 8 // Opcodes for control operators.
9 #define INNER_CONTROL_OP_LIST(V) \ 9 #define INNER_CONTROL_OP_LIST(V) \
10 V(Dead) \ 10 V(Dead) \
11 V(Loop) \ 11 V(Loop) \
12 V(Branch) \ 12 V(Branch) \
13 V(IfTrue) \ 13 V(IfTrue) \
14 V(IfFalse) \ 14 V(IfFalse) \
15 V(Switch) \ 15 V(Switch) \
16 V(Case) \ 16 V(IfValue) \
17 V(IfDefault) \
17 V(Merge) \ 18 V(Merge) \
18 V(Return) \ 19 V(Return) \
19 V(OsrNormalEntry) \ 20 V(OsrNormalEntry) \
20 V(OsrLoopEntry) \ 21 V(OsrLoopEntry) \
21 V(Throw) 22 V(Throw)
22 23
23 #define CONTROL_OP_LIST(V) \ 24 #define CONTROL_OP_LIST(V) \
24 INNER_CONTROL_OP_LIST(V) \ 25 INNER_CONTROL_OP_LIST(V) \
25 V(Start) \ 26 V(Start) \
26 V(End) 27 V(End)
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 static bool IsPhiOpcode(Value val) { 302 static bool IsPhiOpcode(Value val) {
302 return val == kPhi || val == kEffectPhi; 303 return val == kPhi || val == kEffectPhi;
303 } 304 }
304 }; 305 };
305 306
306 } // namespace compiler 307 } // namespace compiler
307 } // namespace internal 308 } // namespace internal
308 } // namespace v8 309 } // namespace v8
309 310
310 #endif // V8_COMPILER_OPCODES_H_ 311 #endif // V8_COMPILER_OPCODES_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698