Lines Matching refs:body_
47 body_(builder->zone(), 256), in WasmFunctionBuilder()
55 void WasmFunctionBuilder::EmitByte(byte val) { body_.write_u8(val); } in EmitByte()
57 void WasmFunctionBuilder::EmitI32V(int32_t val) { body_.write_i32v(val); } in EmitI32V()
59 void WasmFunctionBuilder::EmitU32V(uint32_t val) { body_.write_u32v(val); } in EmitU32V()
92 body_.write(code, code_size); in EmitCode()
95 void WasmFunctionBuilder::Emit(WasmOpcode opcode) { body_.write_u8(opcode); } in Emit()
99 body_.write_u8(opcode >> 8); in EmitWithPrefix()
102 body_.write_u32v(opcode & 0xff); in EmitWithPrefix()
104 body_.write_u8(opcode); in EmitWithPrefix()
109 body_.write_u8(opcode); in EmitWithU8()
110 body_.write_u8(immediate); in EmitWithU8()
115 body_.write_u8(opcode); in EmitWithU8U8()
116 body_.write_u8(imm1); in EmitWithU8U8()
117 body_.write_u8(imm2); in EmitWithU8U8()
121 body_.write_u8(opcode); in EmitWithI32V()
122 body_.write_i32v(immediate); in EmitWithI32V()
126 body_.write_u8(opcode); in EmitWithU32V()
127 body_.write_u32v(immediate); in EmitWithU32V()
143 WriteValueType(&body_, type); in EmitValueType()
151 body_.write_u8(kExprI64Const); in EmitI64Const()
152 body_.write_i64v(value); in EmitI64Const()
156 body_.write_u8(kExprF32Const); in EmitF32Const()
157 body_.write_f32(value); in EmitF32Const()
161 body_.write_u8(kExprF64Const); in EmitF64Const()
162 body_.write_f64(value); in EmitF64Const()
167 call.offset = body_.size(); in EmitDirectCallIndex()
181 DCHECK(asm_offsets_.size() == 0 || body_.size() > last_asm_byte_offset_); in AddAsmWasmOffset()
183 DCHECK_LE(body_.size(), kMaxUInt32); in AddAsmWasmOffset()
184 uint32_t byte_offset = static_cast<uint32_t>(body_.size()); in AddAsmWasmOffset()
220 DCHECK_LE(position, body_.size()); in DeleteCodeAfter()
221 body_.Truncate(position); in DeleteCodeAfter()
230 buffer->write_size(locals_size + body_.size()); in WriteBody()
235 if (body_.size() > 0) { in WriteBody()
237 buffer->write(body_.begin(), body_.size()); in WriteBody()