33 references to WriteULEB128
ILCompiler.Compiler (33)
Compiler\ObjectWriter\Dwarf\DwarfFde.cs (6)
91
cfiCodeOffset += DwarfHelper.
WriteULEB128
(cfiCode.AsSpan(cfiCodeOffset), (uint)dwarfReg);
97
cfiCodeOffset += DwarfHelper.
WriteULEB128
(cfiCode.AsSpan(cfiCodeOffset), (uint)absOffset);
102
cfiCodeOffset += DwarfHelper.
WriteULEB128
(cfiCode.AsSpan(cfiCodeOffset), (uint)dwarfReg);
103
cfiCodeOffset += DwarfHelper.
WriteULEB128
(cfiCode.AsSpan(cfiCodeOffset), (uint)absOffset);
110
cfiCodeOffset += DwarfHelper.
WriteULEB128
(cfiCode.AsSpan(cfiCodeOffset), (uint)cfaOffset);
117
cfiCodeOffset += DwarfHelper.
WriteULEB128
(cfiCode.AsSpan(cfiCodeOffset), (uint)cfaOffset);
Compiler\ObjectWriter\Eabi\EabiUnwindConverter.cs (1)
184
unwindDataOffset += DwarfHelper.
WriteULEB128
(unwindData.AsSpan(unwindDataOffset), (uint)((pendingSpAdjustment - 0x204) >> 2));
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Relocation.cs (1)
710
DwarfHelper.
WriteULEB128
(new Span<byte>((byte*)location, WASM_PADDED_RELOC_SIZE_32), checked((ulong)value));
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
106
int sizeLength = DwarfHelper.
WriteULEB128
(buffer, (ulong)_types.Length);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (2)
54
writer.Advance(
WriteULEB128
(buffer, value));
87
int actualSize =
WriteULEB128
(bytes, value);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSection.cs (2)
87
DwarfHelper.
WriteULEB128
(headerBuffer.Slice(1), contentSize);
126
DwarfHelper.
WriteULEB128
(destination, (ulong)EntryCount);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (16)
65
int pos = DwarfHelper.
WriteULEB128
(_locals.AsSpan(), localChunks);
96
int pos = DwarfHelper.
WriteULEB128
(buffer, (ulong)contentSize);
281
return 1 + DwarfHelper.
WriteULEB128
(buffer.Slice(1), ((uint)_kind) & 0xFFFFFF);
319
return DwarfHelper.
WriteULEB128
(buffer, _value);
406
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), _align);
474
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), _tableIndex);
527
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)LocalIndex);
552
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)GlobalIndex);
600
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)DstMemoryIndex);
601
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)SrcMemoryIndex);
630
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)MemoryIndex);
659
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)DataSegmentIndex);
660
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)MemoryIndex);
691
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)ElemIndex);
692
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)TableIndex);
717
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), TableIndex);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmNative.cs (4)
120
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), 1); // Requires 1 table entry
157
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), _min);
160
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), _max!.Value);
195
return 1 + DwarfHelper.
WriteULEB128
(buffer.Slice(1), (ulong)_typeIndex);