Lines Matching refs:obj

9     ModuleTranslation, Tunables, obj,
22 obj: Object<'a>, field
46 pub fn new(mut obj: Object<'a>, tunables: &'a Tunables) -> ObjectBuilder<'a> { in new()
47 let data = obj.add_section( in new()
48 obj.segment_name(StandardSegment::Data).to_vec(), in new()
49 obj::ELF_WASM_DATA.as_bytes().to_vec(), in new()
53 obj, in new()
133 .obj in append()
140 self.obj.append_section_data(self.data, data, align); in append()
144 self.obj.append_section_data(self.data, data, 1); in append()
152 self.obj.add_section( in append()
153 self.obj.segment_name(StandardSegment::Data).to_vec(), in append()
154 obj::ELF_NAME_DATA.as_bytes().to_vec(), in append()
161 let offset = self.obj.append_section_data(name_id, name.as_bytes(), 1); in append()
238 self.obj.add_section( in push_debug()
239 self.obj.segment_name(StandardSegment::Debug).to_vec(), in push_debug()
240 obj::ELF_WASMTIME_DWARF.as_bytes().to_vec(), in push_debug()
244 let offset = self.obj.append_section_data(section_id, data, 1); in push_debug()
254 let bytecode_id = self.obj.add_section( in append_wasm_bytecode()
255 self.obj.segment_name(StandardSegment::Data).to_vec(), in append_wasm_bytecode()
256 obj::ELF_WASMTIME_WASM_BYTECODE.as_bytes().to_vec(), in append_wasm_bytecode()
259 let ends_id = self.obj.add_section( in append_wasm_bytecode()
260 self.obj.segment_name(StandardSegment::Data).to_vec(), in append_wasm_bytecode()
261 obj::ELF_WASMTIME_WASM_BYTECODE_ENDS.as_bytes().to_vec(), in append_wasm_bytecode()
266 self.obj.append_section_data(bytecode_id, wasm, 1); in append_wasm_bytecode()
270 self.obj.append_section_data(ends_id, &end.to_le_bytes(), 4); in append_wasm_bytecode()
280 let section = self.obj.add_section( in serialize_info()
281 self.obj.segment_name(StandardSegment::Data).to_vec(), in serialize_info()
282 obj::ELF_WASMTIME_INFO.as_bytes().to_vec(), in serialize_info()
286 self.obj.set_section_data(section, data, 1); in serialize_info()
292 self.obj.emit(t).map_err(|e| e.into()) in finish()
302 fn finish_object(obj: ObjectBuilder<'_>, state: &Self::State) -> Result<Self>; in finish_object()
307 fn finish_object(obj: ObjectBuilder<'_>, _state: &Self::State) -> Result<Self> { in finish_object()
309 obj.finish(&mut result)?; in finish_object()