-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1668373 - wasm: Split CompilerEnvironment from ModuleEnvironment.…
… r=lth ModuleEnvironment contains a CompilerEnvironment pointer, which describes the compiler selection, tiering, and whether debugging is enabled. None of this information is needed for validation, so wasm::Validate() has to create a synthetic CompilerEnvironment which is never read. This isn't a large issue, but indicates ModuleEnvironment is doing too many things. This commit removes CompilerEnvironment from ModuleEnvironment and pipes it through the compiler pipeline. This is fairly straightforward except for: * wasm::Validate() no longer needs to create a synthetic compiler env * DecodeModuleEnvironment() used to invoke moduleEnv.compilerEnv.computeParameters(d) after the preamble was decoded. I believe this was needed for handling the GC opt-in section, which is no longer used. I moved this call to computeParameters() to after all callers of DecodeModuleEnvironment(). * I added an assertion in IonCompileFunctions/CraneliftCompileFunctions that they are not being invoked for debugged modules. Differential Revision: https://phabricator.services.mozilla.com/D91995
- Loading branch information
Showing
12 changed files
with
90 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.