Skip to content

Allow all features on wasm2js and add atomic tests#2311

Merged
aheejin merged 12 commits into
WebAssembly:masterfrom
aheejin:wasm2js_atomics
Aug 28, 2019
Merged

Allow all features on wasm2js and add atomic tests#2311
aheejin merged 12 commits into
WebAssembly:masterfrom
aheejin:wasm2js_atomics

Conversation

@aheejin

@aheejin aheejin commented Aug 27, 2019

Copy link
Copy Markdown
Member

This adds -all argument to wasm2js testing and fixes wasm2js to
actually take that argument (currently it doesn't, when it takes a wast
file). This also adds a wasm2js test for atomic.fence instruction that
was added in #2307.

This adds `-all` argument to wasm2js testing and fixes wasm2js to
actually take that argument (currently it doesn't, when it takes a wast
file). This also adds a wasm2js test for `atomic.fence` instruction that
was added in WebAssembly#2307.
@aheejin aheejin requested a review from kripken August 27, 2019 23:46
@aheejin

aheejin commented Aug 27, 2019

Copy link
Copy Markdown
Member Author

The wasm2js change feels a bit hacky and I'm not sure if it's the right direction... Please let me know if there's a better way.

private:
Options() = delete;
Options(const Options&) = delete;
Options& operator=(const Options&) = delete;

@aheejin aheejin Aug 27, 2019

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These prevent Options and its subclasses from being passed as function arguments. Not sure why they were added, but deleted them to pass OptimizationOptions as by argument.

Comment thread src/tools/wasm2js.cpp Outdated
Output& out,
Wasm2JSBuilder::Flags flags,
PassOptions options)
const OptimizationOptions& options)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to use applyFeatures within the class

Comment thread scripts/test/wasm2js.py Outdated
Comment thread src/tools/wasm2js.cpp Outdated
@aheejin aheejin merged commit e06fc14 into WebAssembly:master Aug 28, 2019
@aheejin aheejin deleted the wasm2js_atomics branch August 28, 2019 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants