12 references to
ILCompiler.ReadyToRun (12)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (12)
277WebcilSection section = _sections[sectionIndex] as WebcilSection; 685WasmSection section = _sections[index]; 794Debug.Assert(_sections[sectionIndex] is WebcilSection); 828Debug.Assert(_sections[pending.SectionIndex] is WebcilSection); 829WebcilSection webcilSection = (WebcilSection)_sections[pending.SectionIndex]; 1001if (_sections[sectionIndex] is WebcilSection curSection) 1027if (_sections[definedSymbol.SectionIndex] is WebcilSection targetSection) 1107throw new InvalidDataException($"WASM_MEMORY_ADDR_REL_SLEB: symbol '{reloc.SymbolName}' (sectionIndex {definedSymbol.SectionIndex}, section type {_sections[definedSymbol.SectionIndex]?.GetType().Name}) is not in a WebcilSection. Reloc in section {sectionIndex} ({_sections[sectionIndex]?.GetType().Name}), offset {reloc.Offset:X}."); 1131throw new InvalidDataException($"WASM_MEMORY_ADDR_REL_LEB: symbol '{reloc.SymbolName}' (sectionIndex {definedSymbol.SectionIndex}, section type {_sections[definedSymbol.SectionIndex]?.GetType().Name}) is not in a WebcilSection. Reloc in section {sectionIndex} ({_sections[sectionIndex]?.GetType().Name}), offset {reloc.Offset:X}."); 1195if (shrink && _sections[sectionIndex] is WasmSection { Type: WasmSectionType.Code })