diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-07-16 12:01:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-16 12:01:54 -0700 |
commit | e601522b1e15e5a2a96578244faca1648021fb2d (patch) | |
tree | 6e2a0392820ea3b371e1fd6bce3340eef97589d7 /src/passes/Precompute.cpp | |
parent | 6285642d3c2e267c40eab1c46dff887fca1bd3d7 (diff) | |
download | binaryen-e601522b1e15e5a2a96578244faca1648021fb2d.tar.gz binaryen-e601522b1e15e5a2a96578244faca1648021fb2d.tar.bz2 binaryen-e601522b1e15e5a2a96578244faca1648021fb2d.zip |
Refactor stack writing code into a new StackWriter class (#1620)
This separates out the WasmBinaryWriter parts that do stack writing into a separate class, StackWriter. Previously the WasmBinaryWriter did both the general writing and the stack stuff, and the stack stuff has global state, which it manually cleaned up etc. - seems nicer to have it as a separate class, a class focused on just that one thing.
Should be no functional changes in this PR.
Also add a timeout to the wasm-reduce test, which happened to fail on one of the commits here. It was running slower on that commit for some reason, could have been random - I verified that general wasm writing speed is unaffected by this PR. (But I added the timeout to prevent future random timeouts.)
Diffstat (limited to 'src/passes/Precompute.cpp')
0 files changed, 0 insertions, 0 deletions