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

Side by Side Diff: src/interpreter/bytecodes.h

Issue 2007023003: [interpreter] Address naming inconsistencies in bytecodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@oth-0056-register-only
Patch Set: Rebase. Created 4 years, 6 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/interpreter.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_BYTECODES_H_ 5 #ifndef V8_INTERPRETER_BYTECODES_H_
6 #define V8_INTERPRETER_BYTECODES_H_ 6 #define V8_INTERPRETER_BYTECODES_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 // Clients of this interface shouldn't depend on lots of interpreter internals. 10 // Clients of this interface shouldn't depend on lots of interpreter internals.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 V(StaLookupSlotSloppy, AccumulatorUse::kReadWrite, OperandType::kIdx) \ 118 V(StaLookupSlotSloppy, AccumulatorUse::kReadWrite, OperandType::kIdx) \
119 V(StaLookupSlotStrict, AccumulatorUse::kReadWrite, OperandType::kIdx) \ 119 V(StaLookupSlotStrict, AccumulatorUse::kReadWrite, OperandType::kIdx) \
120 \ 120 \
121 /* Register-accumulator transfers */ \ 121 /* Register-accumulator transfers */ \
122 V(Ldar, AccumulatorUse::kWrite, OperandType::kReg) \ 122 V(Ldar, AccumulatorUse::kWrite, OperandType::kReg) \
123 V(Star, AccumulatorUse::kRead, OperandType::kRegOut) \ 123 V(Star, AccumulatorUse::kRead, OperandType::kRegOut) \
124 \ 124 \
125 /* Register-register transfers */ \ 125 /* Register-register transfers */ \
126 V(Mov, AccumulatorUse::kNone, OperandType::kReg, OperandType::kRegOut) \ 126 V(Mov, AccumulatorUse::kNone, OperandType::kReg, OperandType::kRegOut) \
127 \ 127 \
128 /* LoadIC operations */ \ 128 /* Property loads (LoadIC) operations */ \
129 V(LoadIC, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kIdx, \ 129 V(LdaNamedProperty, AccumulatorUse::kWrite, OperandType::kReg, \
130 OperandType::kIdx) \ 130 OperandType::kIdx, OperandType::kIdx) \
131 V(LdrNamedProperty, AccumulatorUse::kNone, OperandType::kReg, \ 131 V(LdrNamedProperty, AccumulatorUse::kNone, OperandType::kReg, \
132 OperandType::kIdx, OperandType::kIdx, OperandType::kRegOut) \ 132 OperandType::kIdx, OperandType::kIdx, OperandType::kRegOut) \
133 V(KeyedLoadIC, AccumulatorUse::kReadWrite, OperandType::kReg, \ 133 V(LdaKeyedProperty, AccumulatorUse::kReadWrite, OperandType::kReg, \
134 OperandType::kIdx) \ 134 OperandType::kIdx) \
135 V(LdrKeyedProperty, AccumulatorUse::kRead, OperandType::kReg, \ 135 V(LdrKeyedProperty, AccumulatorUse::kRead, OperandType::kReg, \
136 OperandType::kIdx, OperandType::kRegOut) \ 136 OperandType::kIdx, OperandType::kRegOut) \
137 \ 137 \
138 /* StoreIC operations */ \ 138 /* Propery stores (StoreIC) operations */ \
139 V(StoreICSloppy, AccumulatorUse::kRead, OperandType::kReg, \ 139 V(StaNamedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \
140 OperandType::kIdx, OperandType::kIdx) \ 140 OperandType::kIdx, OperandType::kIdx) \
141 V(StoreICStrict, AccumulatorUse::kRead, OperandType::kReg, \ 141 V(StaNamedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \
142 OperandType::kIdx, OperandType::kIdx) \ 142 OperandType::kIdx, OperandType::kIdx) \
143 V(KeyedStoreICSloppy, AccumulatorUse::kRead, OperandType::kReg, \ 143 V(StaKeyedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \
144 OperandType::kReg, OperandType::kIdx) \ 144 OperandType::kReg, OperandType::kIdx) \
145 V(KeyedStoreICStrict, AccumulatorUse::kRead, OperandType::kReg, \ 145 V(StaKeyedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \
146 OperandType::kReg, OperandType::kIdx) \ 146 OperandType::kReg, OperandType::kIdx) \
147 \ 147 \
148 /* Binary Operators */ \ 148 /* Binary Operators */ \
149 V(Add, AccumulatorUse::kReadWrite, OperandType::kReg) \ 149 V(Add, AccumulatorUse::kReadWrite, OperandType::kReg) \
150 V(Sub, AccumulatorUse::kReadWrite, OperandType::kReg) \ 150 V(Sub, AccumulatorUse::kReadWrite, OperandType::kReg) \
151 V(Mul, AccumulatorUse::kReadWrite, OperandType::kReg) \ 151 V(Mul, AccumulatorUse::kReadWrite, OperandType::kReg) \
152 V(Div, AccumulatorUse::kReadWrite, OperandType::kReg) \ 152 V(Div, AccumulatorUse::kReadWrite, OperandType::kReg) \
153 V(Mod, AccumulatorUse::kReadWrite, OperandType::kReg) \ 153 V(Mod, AccumulatorUse::kReadWrite, OperandType::kReg) \
154 V(BitwiseOr, AccumulatorUse::kReadWrite, OperandType::kReg) \ 154 V(BitwiseOr, AccumulatorUse::kReadWrite, OperandType::kReg) \
155 V(BitwiseXor, AccumulatorUse::kReadWrite, OperandType::kReg) \ 155 V(BitwiseXor, AccumulatorUse::kReadWrite, OperandType::kReg) \
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 663 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
664 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 664 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
665 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 665 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
666 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 666 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
667 667
668 } // namespace interpreter 668 } // namespace interpreter
669 } // namespace internal 669 } // namespace internal
670 } // namespace v8 670 } // namespace v8
671 671
672 #endif // V8_INTERPRETER_BYTECODES_H_ 672 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-peephole-optimizer.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698