29 references to WriteULEB128
ILCompiler.Compiler (10)
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)
180
unwindDataOffset += DwarfHelper.
WriteULEB128
(unwindData.AsSpan(unwindDataOffset), (uint)((pendingSpAdjustment - 0x204) >> 2));
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)
52
writer.Advance(
WriteULEB128
(buffer, value));
85
int actualSize =
WriteULEB128
(bytes, value);
ILCompiler.RyuJit (19)
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);
405
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), _align);
473
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), _tableIndex);
526
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)LocalIndex);
551
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)GlobalIndex);
599
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)DstMemoryIndex);
600
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)SrcMemoryIndex);
629
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)MemoryIndex);
658
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)DataSegmentIndex);
659
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)MemoryIndex);
690
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)ElemIndex);
691
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), (uint)TableIndex);
716
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), TableIndex);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmNative.cs (3)
109
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), 1); // Requires 1 table entry
146
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), _min);
149
pos += DwarfHelper.
WriteULEB128
(buffer.Slice(pos), _max!.Value);