27 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 (21)
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);
398
int valSize = (int)DwarfHelper.
SizeOfULEB128
(_align) + _offset.EncodeSize();
414
WasmExpr.OffsetRelocationsByOffset(buffer.Slice(0, relocsEncoded), base.EncodeSize() + (int)DwarfHelper.
SizeOfULEB128
(_align));
463
uint tableSize = DwarfHelper.
SizeOfULEB128
(_tableIndex);
533
return base.EncodeSize() + (int)DwarfHelper.
SizeOfULEB128
((uint)LocalIndex);
557
return base.EncodeSize() + (int)DwarfHelper.
SizeOfULEB128
((uint)GlobalIndex);
608
+ (int)DwarfHelper.
SizeOfULEB128
((uint)DstMemoryIndex)
609
+ (int)DwarfHelper.
SizeOfULEB128
((uint)SrcMemoryIndex);
637
+ (int)DwarfHelper.
SizeOfULEB128
((uint)MemoryIndex);
667
+ (int)DwarfHelper.
SizeOfULEB128
((uint)DataSegmentIndex)
668
+ (int)DwarfHelper.
SizeOfULEB128
((uint)MemoryIndex);
699
+ (int)DwarfHelper.
SizeOfULEB128
((uint)TableIndex)
700
+ (int)DwarfHelper.
SizeOfULEB128
((uint)ElemIndex);
721
return base.EncodeSize() + (int)DwarfHelper.
SizeOfULEB128
(TableIndex);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmNative.cs (3)
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);