27 references to SizeOfULEB128
ILCompiler.Compiler (6)
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\Target_Wasm\WasmTypes.cs (1)
100uint sizeLength = DwarfHelper.SizeOfULEB128((ulong)_types.Length);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (1)
51Span<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]; 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); 398int valSize = (int)DwarfHelper.SizeOfULEB128(_align) + _offset.EncodeSize(); 414WasmExpr.OffsetRelocationsByOffset(buffer.Slice(0, relocsEncoded), base.EncodeSize() + (int)DwarfHelper.SizeOfULEB128(_align)); 463uint tableSize = DwarfHelper.SizeOfULEB128(_tableIndex); 533return base.EncodeSize() + (int)DwarfHelper.SizeOfULEB128((uint)LocalIndex); 557return 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); 721return base.EncodeSize() + (int)DwarfHelper.SizeOfULEB128(TableIndex);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmNative.cs (3)
113public override int EncodeSize() => 2 + (int)DwarfHelper.SizeOfULEB128(1); // The 2 is the element type and table limit flags 156uint size = 1 + DwarfHelper.SizeOfULEB128(_min); 159size += DwarfHelper.SizeOfULEB128(_max!.Value);