summaryrefslogtreecommitdiff
path: root/src/wasm/source-map.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [NFC] Encapsulate source map reader state (#7132)Thomas Lively2024-12-031-0/+212
Move all state relevant to reading source maps out of WasmBinaryReader and into a new utility, SourceMapReader. This is a prerequisite for parallelizing the parsing of function bodies, since the source map reader state is different at the beginning of each function. Also take the opportunity to simplify the way we read source maps, for example by deferring the reading of anything but the position of a debug location until it will be used and by using `std::optional` instead of singleton `std::set`s to store function prologue and epilogue debug locations.