-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasm] More jiterpreter cleanup #78519
Conversation
@kg please cherrypick lambdageek@91d2bc9 That will reconfigure the build to:
There's a bunch of required rollup and tsconfig changes in there that work around some kind of bug where rollup fails to delegate to typescript when a certain combination of options is used. As far as I can tell VS Code is happy with these changes - after a build, chasing references in VS Code works - it will find the opcode definitions in the artifacts folder and warn appropriately. |
Remove duplicated minimum opcode counter in the jiterpreter typescript Move minimum jiterpreter trace hit count to options-def.h
… time using a python script
…ntents need to change.
- Drive the generation from wasm.proj (driving it from cmake is wrong, because the cmake build runs after rollup) - Use the tsconfig rootDirs option to specify where to find the files (runtime dir and also artifacts/bin/native/generated) - Also due to rollup issues, specify rootDirs and include in rollup.config.js - otherwise the rollup typescript plugin doesn't seem to kick in, and barebones rollup gets confused when parsing .ts files - The outDir option in tsconfig.json had to be deleted to make rollup work. But it was also unused since rollup controls where the ts plugin is supposed to emit its output - VS Code understands the tsconfig.json changes and can follow references to the artifacts/.../generated folder Note that Release and Debug builds both dump the generates mintops.ts in the same folder. This seems ok for now since there's no special debug-only opcodes. (Also VS Code has no idea about configurations, so it has to be done this way or else it won't be able to find the .ts file)
fe95daa
to
236e4e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some MSBuild nits; and an explicit dependency on mintops.ts for the main rollup target
Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
… wasm-jiterpreter-cleanup-2
The mono changes look ok to me. |
I don't agree that it should be missing in git. Perhaps I don't understand all of it. |
Checking in a generated file makes workflow more complicated:
As for intellisense, in vs code I only get errors without rebuilding if I open jiterpreter.ts. opening other files works fine. |
Blocks #78428, addresses some PR feedback and quality issues: