13 references to
ILCompiler.ReadyToRun (13)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (13)
85WebcilSection section = _sections[sectionIndex] as WebcilSection; 381SectionDataEmitter section = _sections[index]; 479SectionDataEmitter emittedSection = _sections[i]; 526Debug.Assert(_sections[sectionIndex] is WebcilSection); 541Debug.Assert(_sections[pending.SectionIndex] is WebcilSection); 542WebcilSection webcilSection = (WebcilSection)_sections[pending.SectionIndex]; 733if (_sections[sectionIndex] is WebcilSection curSection) 759if (_sections[definedSymbol.SectionIndex] is WebcilSection targetSection) 839throw 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}."); 863throw 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}."); 927if (shrink && _sections[sectionIndex] is WasmSection { Type: WasmSectionType.Code })