diff options
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 1c3a430fc..4206defdf 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1044,6 +1044,19 @@ private: std::unique_ptr<ImportInfo> importInfo; + // General debugging info: map every instruction to its original position in + // the binary, relative to the beginning of the code section. This is similar + // to binaryLocations on Function objects, which are filled as we load the + // functions from the binary. Here we track them as we write, and then + // the combination of the two can be used to update DWARF info for the new + // locations of things. + BinaryLocationsMap binaryLocations; + size_t binaryLocationsSizeAtSectionStart; + // Track the expressions that we added for the current function being + // written, so that we can update those specific binary locations when + // the function is written out. + std::vector<Expression*> binaryLocationTrackedExpressionsForFunc; + void prepare(); }; |