21 references to WASM_PADDED_RELOC_SIZE_32
ILCompiler.ReadyToRun (21)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Relocation.cs (13)
677
DwarfHelper.WritePaddedULEB128(new Span<byte>((byte*)location,
WASM_PADDED_RELOC_SIZE_32
), checked((ulong)value));
683
DwarfHelper.WritePaddedSLEB128(new Span<byte>((byte*)location,
WASM_PADDED_RELOC_SIZE_32
), value);
728
RelocType.WASM_FUNCTION_INDEX_LEB =>
WASM_PADDED_RELOC_SIZE_32
,
729
RelocType.WASM_TABLE_INDEX_SLEB =>
WASM_PADDED_RELOC_SIZE_32
,
730
RelocType.WASM_TYPE_INDEX_LEB =>
WASM_PADDED_RELOC_SIZE_32
,
731
RelocType.WASM_GLOBAL_INDEX_LEB =>
WASM_PADDED_RELOC_SIZE_32
,
732
RelocType.WASM_MEMORY_ADDR_LEB =>
WASM_PADDED_RELOC_SIZE_32
,
733
RelocType.WASM_MEMORY_ADDR_SLEB =>
WASM_PADDED_RELOC_SIZE_32
,
734
RelocType.WASM_MEMORY_ADDR_REL_LEB =>
WASM_PADDED_RELOC_SIZE_32
,
735
RelocType.WASM_MEMORY_ADDR_REL_SLEB =>
WASM_PADDED_RELOC_SIZE_32
,
736
RelocType.WASM_CLR_RESTORE_CONTEXT_EXCEPTION_TAG_LEB =>
WASM_PADDED_RELOC_SIZE_32
,
809
return checked((long)DwarfHelper.ReadULEB128(new ReadOnlySpan<byte>(location,
WASM_PADDED_RELOC_SIZE_32
)));
813
return DwarfHelper.ReadSLEB128(new ReadOnlySpan<byte>(location,
WASM_PADDED_RELOC_SIZE_32
));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (8)
1294
uint encodeLength = Relocation.
WASM_PADDED_RELOC_SIZE_32
;
1298
Debug.Assert(headerBuffer.Slice(1).Length == Relocation.
WASM_PADDED_RELOC_SIZE_32
);
1305
public override int HeaderSize => 1 + Relocation.
WASM_PADDED_RELOC_SIZE_32
;
1385
Relocation.
WASM_PADDED_RELOC_SIZE_32
, // encode size of data length
1388
Relocation.
WASM_PADDED_RELOC_SIZE_32
, // encode size of data length
1428
Debug.Assert(headerBuffer.Slice(len).Length == Relocation.
WASM_PADDED_RELOC_SIZE_32
);
1437
Debug.Assert(headerBuffer.Slice(len).Length == Relocation.
WASM_PADDED_RELOC_SIZE_32
, $"{headerBuffer.Slice(len).Length} != {Relocation.
WASM_PADDED_RELOC_SIZE_32
}");