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

Side by Side Diff: src/interpreter/bytecode-peephole-table.h

Issue 2169813002: [interpreter] Add output register to ToName (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@addregouts
Patch Set: comments 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
« no previous file with comments | « src/interpreter/bytecode-peephole-optimizer.cc ('k') | src/interpreter/bytecode-pipeline.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 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_INTERPRETER_BYTECODE_PEEPHOLE_TABLE_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_PEEPHOLE_TABLE_H_
6 #define V8_INTERPRETER_BYTECODE_PEEPHOLE_TABLE_H_ 6 #define V8_INTERPRETER_BYTECODE_PEEPHOLE_TABLE_H_
7 7
8 #include "src/interpreter/bytecodes.h" 8 #include "src/interpreter/bytecodes.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 namespace interpreter { 12 namespace interpreter {
13 13
14 #define PEEPHOLE_NON_JUMP_ACTION_LIST(V) \ 14 #define PEEPHOLE_NON_JUMP_ACTION_LIST(V) \
15 V(DefaultAction) \ 15 V(DefaultAction) \
16 V(UpdateLastAction) \ 16 V(UpdateLastAction) \
17 V(UpdateLastIfSourceInfoPresentAction) \ 17 V(UpdateLastIfSourceInfoPresentAction) \
18 V(ElideCurrentAction) \ 18 V(ElideCurrentAction) \
19 V(ElideCurrentIfOperand0MatchesAction) \ 19 V(ElideCurrentIfOperand0MatchesAction) \
20 V(ElideCurrentIfLoadingNameConstantAction) \ 20 V(ElideLastAction) \
21 V(ElideLastAction) \ 21 V(ChangeBytecodeAction) \
22 V(ChangeBytecodeAction) \ 22 V(TransformLdaStarToLdrLdarAction) \
23 V(TransformLdaStarToLdrLdarAction) \ 23 V(TransformLdaSmiBinaryOpToBinaryOpWithSmiAction) \
24 V(TransformLdaSmiBinaryOpToBinaryOpWithSmiAction) \ 24 V(TransformLdaZeroBinaryOpToBinaryOpWithZeroAction) \
25 V(TransformLdaZeroBinaryOpToBinaryOpWithZeroAction) 25 V(TransformToStarIfLoadingNameConstantAction)
26 26
27 #define PEEPHOLE_JUMP_ACTION_LIST(V) \ 27 #define PEEPHOLE_JUMP_ACTION_LIST(V) \
28 V(DefaultJumpAction) \ 28 V(DefaultJumpAction) \
29 V(UpdateLastJumpAction) \ 29 V(UpdateLastJumpAction) \
30 V(ChangeJumpBytecodeAction) \ 30 V(ChangeJumpBytecodeAction) \
31 V(ElideLastBeforeJumpAction) 31 V(ElideLastBeforeJumpAction)
32 32
33 #define PEEPHOLE_ACTION_LIST(V) \ 33 #define PEEPHOLE_ACTION_LIST(V) \
34 PEEPHOLE_NON_JUMP_ACTION_LIST(V) \ 34 PEEPHOLE_NON_JUMP_ACTION_LIST(V) \
35 PEEPHOLE_JUMP_ACTION_LIST(V) 35 PEEPHOLE_JUMP_ACTION_LIST(V)
(...skipping 28 matching lines...) Expand all
64 64
65 static const PeepholeActionAndData row_data_[][kNumberOfBytecodes]; 65 static const PeepholeActionAndData row_data_[][kNumberOfBytecodes];
66 static const PeepholeActionAndData* const row_[kNumberOfBytecodes]; 66 static const PeepholeActionAndData* const row_[kNumberOfBytecodes];
67 }; 67 };
68 68
69 } // namespace interpreter 69 } // namespace interpreter
70 } // namespace internal 70 } // namespace internal
71 } // namespace v8 71 } // namespace v8
72 72
73 #endif // V8_INTERPRETER_BYTECODE_PEEPHOLE_TABLE_H_ 73 #endif // V8_INTERPRETER_BYTECODE_PEEPHOLE_TABLE_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-peephole-optimizer.cc ('k') | src/interpreter/bytecode-pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698