Lines Matching refs:bytecode

11 #include "src/interpreter/bytecode-source-info.h"
18 // A container for a generated bytecode, it's operands, and source information.
21 V8_INLINE BytecodeNode(Bytecode bytecode,
23 : bytecode_(bytecode),
27 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count());
30 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
32 : bytecode_(bytecode),
36 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count());
40 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
43 : bytecode_(bytecode),
47 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count());
52 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
55 : bytecode_(bytecode),
59 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count());
65 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
69 : bytecode_(bytecode),
73 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count());
80 V8_INLINE BytecodeNode(Bytecode bytecode, uint32_t operand0,
84 : bytecode_(bytecode),
88 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count());
108 Bytecode bytecode() const { return bytecode_; }
130 template <Bytecode bytecode, ImplicitRegisterUse implicit_register_use,
134 V8_INLINE BytecodeNode(Bytecode bytecode, int operand_count,
139 : bytecode_(bytecode),
143 DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), operand_count);
151 template <Bytecode bytecode, ImplicitRegisterUse accum_use>
153 return BytecodeNode(bytecode, 0, OperandScale::kSingle, source_info);
156 template <Bytecode bytecode, ImplicitRegisterUse accum_use,
160 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 0), operand0_type);
163 return BytecodeNode(bytecode, 1, scale, source_info, operand0);
166 template <Bytecode bytecode, ImplicitRegisterUse accum_use,
170 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 0), operand0_type);
171 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 1), operand1_type);
175 return BytecodeNode(bytecode, 2, scale, source_info, operand0, operand1);
178 template <Bytecode bytecode, ImplicitRegisterUse accum_use,
184 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 0), operand0_type);
185 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 1), operand1_type);
186 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 2), operand2_type);
191 return BytecodeNode(bytecode, 3, scale, source_info, operand0, operand1,
195 template <Bytecode bytecode, ImplicitRegisterUse accum_use,
201 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 0), operand0_type);
202 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 1), operand1_type);
203 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 2), operand2_type);
204 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 3), operand3_type);
210 return BytecodeNode(bytecode, 4, scale, source_info, operand0, operand1,
214 template <Bytecode bytecode, ImplicitRegisterUse accum_use,
222 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 0), operand0_type);
223 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 1), operand1_type);
224 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 2), operand2_type);
225 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 3), operand3_type);
226 DCHECK_EQ(Bytecodes::GetOperandType(bytecode, 4), operand4_type);
233 return BytecodeNode(bytecode, 5, scale, source_info, operand0, operand1,
249 if (Bytecodes::OperandIsScalableSignedByte(bytecode(), operand_index)) {
252 } else if (Bytecodes::OperandIsScalableUnsignedByte(bytecode(),