Lines Matching defs:opcode
95 void WasmFunctionBuilder::Emit(WasmOpcode opcode) { body_.write_u8(opcode); }
97 void WasmFunctionBuilder::EmitWithPrefix(WasmOpcode opcode) {
98 DCHECK_NE(0, opcode & 0xff00);
99 body_.write_u8(opcode >> 8);
100 if ((opcode >> 8) == WasmOpcode::kSimdPrefix) {
102 body_.write_u32v(opcode & 0xff);
104 body_.write_u8(opcode);
108 void WasmFunctionBuilder::EmitWithU8(WasmOpcode opcode, const byte immediate) {
109 body_.write_u8(opcode);
113 void WasmFunctionBuilder::EmitWithU8U8(WasmOpcode opcode, const byte imm1,
115 body_.write_u8(opcode);
120 void WasmFunctionBuilder::EmitWithI32V(WasmOpcode opcode, int32_t immediate) {
121 body_.write_u8(opcode);
125 void WasmFunctionBuilder::EmitWithU32V(WasmOpcode opcode, uint32_t immediate) {
126 body_.write_u8(opcode);
540 WasmOpcode opcode;
543 opcode = kExprStructNewWithRtt;
546 opcode = kExprStructNew;
549 opcode = kExprStructNewDefaultWithRtt;
552 opcode = kExprStructNewDefault;
557 buffer->write_u8(static_cast<uint8_t>(opcode));
803 uint8_t opcode =
817 buffer->write_u8(opcode);