23 references to WASM_PADDED_RELOC_SIZE_32
ILCompiler.ReadyToRun (23)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Relocation.cs (15)
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);
710
DwarfHelper.WriteULEB128(new Span<byte>((byte*)location,
WASM_PADDED_RELOC_SIZE_32
), checked((ulong)value));
716
DwarfHelper.WriteSLEB128(new Span<byte>((byte*)location,
WASM_PADDED_RELOC_SIZE_32
), value);
753
RelocType.WASM_FUNCTION_INDEX_LEB =>
WASM_PADDED_RELOC_SIZE_32
,
754
RelocType.WASM_TABLE_INDEX_SLEB =>
WASM_PADDED_RELOC_SIZE_32
,
755
RelocType.WASM_TYPE_INDEX_LEB =>
WASM_PADDED_RELOC_SIZE_32
,
756
RelocType.WASM_GLOBAL_INDEX_LEB =>
WASM_PADDED_RELOC_SIZE_32
,
757
RelocType.WASM_MEMORY_ADDR_LEB =>
WASM_PADDED_RELOC_SIZE_32
,
758
RelocType.WASM_MEMORY_ADDR_SLEB =>
WASM_PADDED_RELOC_SIZE_32
,
759
RelocType.WASM_MEMORY_ADDR_REL_LEB =>
WASM_PADDED_RELOC_SIZE_32
,
760
RelocType.WASM_MEMORY_ADDR_REL_SLEB =>
WASM_PADDED_RELOC_SIZE_32
,
761
RelocType.WASM_CLR_RESTORE_CONTEXT_EXCEPTION_TAG_LEB =>
WASM_PADDED_RELOC_SIZE_32
,
873
return checked((long)DwarfHelper.ReadULEB128(new ReadOnlySpan<byte>(location,
WASM_PADDED_RELOC_SIZE_32
)));
877
return DwarfHelper.ReadSLEB128(new ReadOnlySpan<byte>(location,
WASM_PADDED_RELOC_SIZE_32
));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmDataSection.cs (3)
42
public int HeaderSize => 1 + Relocation.
WASM_PADDED_RELOC_SIZE_32
;
46
uint encodeLength = Relocation.
WASM_PADDED_RELOC_SIZE_32
;
50
Debug.Assert(headerBuffer.Slice(1).Length == Relocation.
WASM_PADDED_RELOC_SIZE_32
);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmDataSegment.cs (5)
46
Relocation.
WASM_PADDED_RELOC_SIZE_32
, // encode size of data length
49
Relocation.
WASM_PADDED_RELOC_SIZE_32
, // encode size of data length
89
Debug.Assert(headerBuffer.Slice(len).Length == Relocation.
WASM_PADDED_RELOC_SIZE_32
);
98
Debug.Assert(headerBuffer.Slice(len).Length == Relocation.
WASM_PADDED_RELOC_SIZE_32
, $"{headerBuffer.Slice(len).Length} != {Relocation.
WASM_PADDED_RELOC_SIZE_32
}");