28 references to SizeOfULEB128
ILCompiler.Compiler (6)
Compiler\ObjectWriter\Dwarf\DwarfEhFrame.cs (3)
85
DwarfHelper.
SizeOfULEB128
(cie.CodeAlignFactor) +
87
DwarfHelper.
SizeOfULEB128
(cie.ReturnAddressRegister) +
88
(uint)(augmentationLength > 0 ? DwarfHelper.
SizeOfULEB128
(augmentationLength) + augmentationLength : 0) +
Compiler\ObjectWriter\Dwarf\DwarfInfo.cs (1)
575
length += 1 + DwarfHelper.
SizeOfULEB128
(_descriptor.StaticOffset); // DW_OP_plus_uconst <const>
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
100
uint sizeLength = DwarfHelper.
SizeOfULEB128
((ulong)_types.Length);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (1)
51
Span<byte> buffer = writer.GetSpan((int)
SizeOfULEB128
(value));
ILCompiler.RyuJit (22)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (18)
64
_locals = new byte[DwarfHelper.
SizeOfULEB128
(localChunks) + localWriter.WrittenSpan.Length];
89
int sizePrefixLength = (int)DwarfHelper.
SizeOfULEB128
((ulong)bodySize);
112
int bodySizePrefixLength = (int)DwarfHelper.
SizeOfULEB128
(bodySize);
275
public virtual int EncodeSize() => _kind.IsVariableLengthInstruction() ? 1 + (int)DwarfHelper.
SizeOfULEB128
(((uint)_kind) & 0xFFFFFF) : 1;
315
return (int)DwarfHelper.
SizeOfULEB128
(_value);
399
int valSize = (int)DwarfHelper.
SizeOfULEB128
(_align) + _offset.EncodeSize();
415
WasmExpr.OffsetRelocationsByOffset(buffer.Slice(0, relocsEncoded), base.EncodeSize() + (int)DwarfHelper.
SizeOfULEB128
(_align));
464
uint tableSize = DwarfHelper.
SizeOfULEB128
(_tableIndex);
534
return base.EncodeSize() + (int)DwarfHelper.
SizeOfULEB128
((uint)LocalIndex);
558
return base.EncodeSize() + (int)DwarfHelper.
SizeOfULEB128
((uint)GlobalIndex);
609
+ (int)DwarfHelper.
SizeOfULEB128
((uint)DstMemoryIndex)
610
+ (int)DwarfHelper.
SizeOfULEB128
((uint)SrcMemoryIndex);
638
+ (int)DwarfHelper.
SizeOfULEB128
((uint)MemoryIndex);
668
+ (int)DwarfHelper.
SizeOfULEB128
((uint)DataSegmentIndex)
669
+ (int)DwarfHelper.
SizeOfULEB128
((uint)MemoryIndex);
700
+ (int)DwarfHelper.
SizeOfULEB128
((uint)TableIndex)
701
+ (int)DwarfHelper.
SizeOfULEB128
((uint)ElemIndex);
722
return base.EncodeSize() + (int)DwarfHelper.
SizeOfULEB128
(TableIndex);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmNative.cs (4)
113
public override int EncodeSize() => 2 + (int)DwarfHelper.
SizeOfULEB128
(1); // The 2 is the element type and table limit flags
156
uint size = 1 + DwarfHelper.
SizeOfULEB128
(_min);
159
size += DwarfHelper.
SizeOfULEB128
(_max!.Value);
187
public override int EncodeSize() => 1 + (int)DwarfHelper.
SizeOfULEB128
((ulong)_typeIndex);