33 references to SizeOfULEB128
ILCompiler.Compiler (33)
Compiler\ObjectWriter\Dwarf\DwarfEhFrame.cs (3)
85DwarfHelper.SizeOfULEB128(cie.CodeAlignFactor) + 87DwarfHelper.SizeOfULEB128(cie.ReturnAddressRegister) + 88(uint)(augmentationLength > 0 ? DwarfHelper.SizeOfULEB128(augmentationLength) + augmentationLength : 0) +
Compiler\ObjectWriter\Dwarf\DwarfInfo.cs (1)
575length += 1 + DwarfHelper.SizeOfULEB128(_descriptor.StaticOffset); // DW_OP_plus_uconst <const>
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Relocation.cs (2)
711return (int)DwarfHelper.SizeOfULEB128((ulong)value); 798return (int)DwarfHelper.SizeOfULEB128((ulong)resolvedValue);
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
100uint sizeLength = DwarfHelper.SizeOfULEB128((ulong)_types.Length);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (1)
53Span<byte> buffer = writer.GetSpan((int)SizeOfULEB128(value));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSection.cs (3)
66uint sizeEncodeLength = DwarfHelper.SizeOfULEB128((ulong)ContentSize); 81uint encodeLength = DwarfHelper.SizeOfULEB128(contentSize); 123protected override int ContentPrefixSize => (int)DwarfHelper.SizeOfULEB128((ulong)EntryCount);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (18)
64_locals = new byte[DwarfHelper.SizeOfULEB128(localChunks) + localWriter.WrittenSpan.Length]; 89int sizePrefixLength = (int)DwarfHelper.SizeOfULEB128((ulong)bodySize); 112int bodySizePrefixLength = (int)DwarfHelper.SizeOfULEB128(bodySize); 275public virtual int EncodeSize() => _kind.IsVariableLengthInstruction() ? 1 + (int)DwarfHelper.SizeOfULEB128(((uint)_kind) & 0xFFFFFF) : 1; 315return (int)DwarfHelper.SizeOfULEB128(_value); 399int valSize = (int)DwarfHelper.SizeOfULEB128(_align) + _offset.EncodeSize(); 415WasmExpr.OffsetRelocationsByOffset(buffer.Slice(0, relocsEncoded), base.EncodeSize() + (int)DwarfHelper.SizeOfULEB128(_align)); 464uint tableSize = DwarfHelper.SizeOfULEB128(_tableIndex); 534return base.EncodeSize() + (int)DwarfHelper.SizeOfULEB128((uint)LocalIndex); 558return 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); 722return base.EncodeSize() + (int)DwarfHelper.SizeOfULEB128(TableIndex);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmNative.cs (4)
124public override int EncodeSize() => 2 + (int)DwarfHelper.SizeOfULEB128(1); // The 2 is the element type and table limit flags 167uint size = 1 + DwarfHelper.SizeOfULEB128(_min); 170size += DwarfHelper.SizeOfULEB128(_max!.Value); 198public override int EncodeSize() => 1 + (int)DwarfHelper.SizeOfULEB128((ulong)_typeIndex);