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

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

Issue 2165953002: [interpreter] Add a register operand to ToNumber (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: regenerate bytecode expectations Created 4 years, 5 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 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 <cstdint> 8 #include <cstdint>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <string> 10 #include <string>
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 V(TestEqualStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ 205 V(TestEqualStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \
206 V(TestLessThan, AccumulatorUse::kReadWrite, OperandType::kReg) \ 206 V(TestLessThan, AccumulatorUse::kReadWrite, OperandType::kReg) \
207 V(TestGreaterThan, AccumulatorUse::kReadWrite, OperandType::kReg) \ 207 V(TestGreaterThan, AccumulatorUse::kReadWrite, OperandType::kReg) \
208 V(TestLessThanOrEqual, AccumulatorUse::kReadWrite, OperandType::kReg) \ 208 V(TestLessThanOrEqual, AccumulatorUse::kReadWrite, OperandType::kReg) \
209 V(TestGreaterThanOrEqual, AccumulatorUse::kReadWrite, OperandType::kReg) \ 209 V(TestGreaterThanOrEqual, AccumulatorUse::kReadWrite, OperandType::kReg) \
210 V(TestInstanceOf, AccumulatorUse::kReadWrite, OperandType::kReg) \ 210 V(TestInstanceOf, AccumulatorUse::kReadWrite, OperandType::kReg) \
211 V(TestIn, AccumulatorUse::kReadWrite, OperandType::kReg) \ 211 V(TestIn, AccumulatorUse::kReadWrite, OperandType::kReg) \
212 \ 212 \
213 /* Cast operators */ \ 213 /* Cast operators */ \
214 V(ToName, AccumulatorUse::kReadWrite) \ 214 V(ToName, AccumulatorUse::kReadWrite) \
215 V(ToNumber, AccumulatorUse::kReadWrite) \ 215 V(ToNumber, AccumulatorUse::kRead, OperandType::kRegOut) \
rmcilroy 2016/07/21 09:31:48 You need to modify BytecodeGraphBuilder as well, o
klaasb 2016/07/21 10:55:19 Done.
216 V(ToObject, AccumulatorUse::kReadWrite) \ 216 V(ToObject, AccumulatorUse::kReadWrite) \
217 \ 217 \
218 /* Literals */ \ 218 /* Literals */ \
219 V(CreateRegExpLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ 219 V(CreateRegExpLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \
220 OperandType::kIdx, OperandType::kFlag8) \ 220 OperandType::kIdx, OperandType::kFlag8) \
221 V(CreateArrayLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ 221 V(CreateArrayLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \
222 OperandType::kIdx, OperandType::kFlag8) \ 222 OperandType::kIdx, OperandType::kFlag8) \
223 V(CreateObjectLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ 223 V(CreateObjectLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \
224 OperandType::kIdx, OperandType::kFlag8) \ 224 OperandType::kIdx, OperandType::kFlag8) \
225 \ 225 \
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 563 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
564 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 564 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
565 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 565 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
566 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 566 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
567 567
568 } // namespace interpreter 568 } // namespace interpreter
569 } // namespace internal 569 } // namespace internal
570 } // namespace v8 570 } // namespace v8
571 571
572 #endif // V8_INTERPRETER_BYTECODES_H_ 572 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698