OLD | NEW |
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 V(KeyedLoadICSloppy, OperandType::kReg8, OperandType::kIdx8) \ | 60 V(KeyedLoadICSloppy, OperandType::kReg8, OperandType::kIdx8) \ |
61 V(KeyedLoadICStrict, OperandType::kReg8, OperandType::kIdx8) \ | 61 V(KeyedLoadICStrict, OperandType::kReg8, OperandType::kIdx8) \ |
62 \ | 62 \ |
63 /* StoreIC operations */ \ | 63 /* StoreIC operations */ \ |
64 V(StoreICSloppy, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ | 64 V(StoreICSloppy, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ |
65 V(StoreICStrict, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ | 65 V(StoreICStrict, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ |
66 V(KeyedStoreICSloppy, OperandType::kReg8, OperandType::kReg8, \ | 66 V(KeyedStoreICSloppy, OperandType::kReg8, OperandType::kReg8, \ |
67 OperandType::kIdx8) \ | 67 OperandType::kIdx8) \ |
68 V(KeyedStoreICStrict, OperandType::kReg8, OperandType::kReg8, \ | 68 V(KeyedStoreICStrict, OperandType::kReg8, OperandType::kReg8, \ |
69 OperandType::kIdx8) \ | 69 OperandType::kIdx8) \ |
| 70 /* TODO(rmcilroy): Remove once literal stores have type feedback slots. */ \ |
| 71 V(KeyedStoreICGeneric, OperandType::kReg8, OperandType::kReg8) \ |
70 \ | 72 \ |
71 /* Context operations */ \ | 73 /* Context operations */ \ |
72 V(PushContext, OperandType::kReg8) \ | 74 V(PushContext, OperandType::kReg8) \ |
73 V(PopContext, OperandType::kReg8) \ | 75 V(PopContext, OperandType::kReg8) \ |
74 \ | 76 \ |
75 /* Binary Operators */ \ | 77 /* Binary Operators */ \ |
76 V(Add, OperandType::kReg8) \ | 78 V(Add, OperandType::kReg8) \ |
77 V(Sub, OperandType::kReg8) \ | 79 V(Sub, OperandType::kReg8) \ |
78 V(Mul, OperandType::kReg8) \ | 80 V(Mul, OperandType::kReg8) \ |
79 V(Div, OperandType::kReg8) \ | 81 V(Div, OperandType::kReg8) \ |
(...skipping 16 matching lines...) Expand all Loading... |
96 V(TestLessThan, OperandType::kReg8) \ | 98 V(TestLessThan, OperandType::kReg8) \ |
97 V(TestGreaterThan, OperandType::kReg8) \ | 99 V(TestGreaterThan, OperandType::kReg8) \ |
98 V(TestLessThanOrEqual, OperandType::kReg8) \ | 100 V(TestLessThanOrEqual, OperandType::kReg8) \ |
99 V(TestGreaterThanOrEqual, OperandType::kReg8) \ | 101 V(TestGreaterThanOrEqual, OperandType::kReg8) \ |
100 V(TestInstanceOf, OperandType::kReg8) \ | 102 V(TestInstanceOf, OperandType::kReg8) \ |
101 V(TestIn, OperandType::kReg8) \ | 103 V(TestIn, OperandType::kReg8) \ |
102 \ | 104 \ |
103 /* Cast operators */ \ | 105 /* Cast operators */ \ |
104 V(ToBoolean, OperandType::kNone) \ | 106 V(ToBoolean, OperandType::kNone) \ |
105 \ | 107 \ |
| 108 /* Literals */ \ |
| 109 V(CreateArrayLiteral, OperandType::kIdx8, OperandType::kImm8) \ |
| 110 \ |
106 /* Control Flow */ \ | 111 /* Control Flow */ \ |
107 V(Jump, OperandType::kImm8) \ | 112 V(Jump, OperandType::kImm8) \ |
108 V(JumpConstant, OperandType::kIdx8) \ | 113 V(JumpConstant, OperandType::kIdx8) \ |
109 V(JumpIfTrue, OperandType::kImm8) \ | 114 V(JumpIfTrue, OperandType::kImm8) \ |
110 V(JumpIfTrueConstant, OperandType::kIdx8) \ | 115 V(JumpIfTrueConstant, OperandType::kIdx8) \ |
111 V(JumpIfFalse, OperandType::kImm8) \ | 116 V(JumpIfFalse, OperandType::kImm8) \ |
112 V(JumpIfFalseConstant, OperandType::kIdx8) \ | 117 V(JumpIfFalseConstant, OperandType::kIdx8) \ |
113 V(Return, OperandType::kNone) | 118 V(Return, OperandType::kNone) |
114 | 119 |
115 | 120 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 257 |
253 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 258 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
254 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 259 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
255 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 260 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
256 | 261 |
257 } // namespace interpreter | 262 } // namespace interpreter |
258 } // namespace internal | 263 } // namespace internal |
259 } // namespace v8 | 264 } // namespace v8 |
260 | 265 |
261 #endif // V8_INTERPRETER_BYTECODES_H_ | 266 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |