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

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

Issue 1412683011: [Interpreter] Enable assignments in expressions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move AssignmentHazardHelper to be an inner class of BytecodeGenerator. Created 5 years, 1 month 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 <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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 /* Context operations */ \ 62 /* Context operations */ \
63 V(PushContext, OperandType::kReg8) \ 63 V(PushContext, OperandType::kReg8) \
64 V(PopContext, OperandType::kReg8) \ 64 V(PopContext, OperandType::kReg8) \
65 V(LdaContextSlot, OperandType::kReg8, OperandType::kIdx8) \ 65 V(LdaContextSlot, OperandType::kReg8, OperandType::kIdx8) \
66 V(StaContextSlot, OperandType::kReg8, OperandType::kIdx8) \ 66 V(StaContextSlot, OperandType::kReg8, OperandType::kIdx8) \
67 \ 67 \
68 /* Register-accumulator transfers */ \ 68 /* Register-accumulator transfers */ \
69 V(Ldar, OperandType::kReg8) \ 69 V(Ldar, OperandType::kReg8) \
70 V(Star, OperandType::kReg8) \ 70 V(Star, OperandType::kReg8) \
71 \ 71 \
72 /* Register-register transfers */ \
73 V(Mov, OperandType::kReg8, OperandType::kReg8) \
74 \
72 /* LoadIC operations */ \ 75 /* LoadIC operations */ \
73 V(LoadICSloppy, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \ 76 V(LoadICSloppy, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \
74 V(LoadICStrict, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \ 77 V(LoadICStrict, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \
75 V(KeyedLoadICSloppy, OperandType::kReg8, OperandType::kIdx8) \ 78 V(KeyedLoadICSloppy, OperandType::kReg8, OperandType::kIdx8) \
76 V(KeyedLoadICStrict, OperandType::kReg8, OperandType::kIdx8) \ 79 V(KeyedLoadICStrict, OperandType::kReg8, OperandType::kIdx8) \
77 /* TODO(rmcilroy): Wide register operands too? */ \ 80 /* TODO(rmcilroy): Wide register operands too? */ \
78 V(LoadICSloppyWide, OperandType::kReg8, OperandType::kIdx16, \ 81 V(LoadICSloppyWide, OperandType::kReg8, OperandType::kIdx16, \
79 OperandType::kIdx16) \ 82 OperandType::kIdx16) \
80 V(LoadICStrictWide, OperandType::kReg8, OperandType::kIdx16, \ 83 V(LoadICStrictWide, OperandType::kReg8, OperandType::kIdx16, \
81 OperandType::kIdx16) \ 84 OperandType::kIdx16) \
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 341
339 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 342 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
340 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 343 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
341 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 344 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
342 345
343 } // namespace interpreter 346 } // namespace interpreter
344 } // namespace internal 347 } // namespace internal
345 } // namespace v8 348 } // namespace v8
346 349
347 #endif // V8_INTERPRETER_BYTECODES_H_ 350 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698