Skip to content

Remove stale asm.js and fastcomp references and dead tests. NFC - #27935

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:remove-asmjs-remnants
Oct 12, 2026
Merged

sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:remove-asmjs-remnants

Conversation

@sbc100

@sbc100 sbc100 commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Remove leftover asm.js and fastcomp references and tests that are no
longer used:

  • Remove test/invoke_i.cpp, two fastcomp invoke_* tests, and the
    disabled test_global_inits test in test/test_other.py that have
    been skipped since the fastcomp era.
  • Remove test_preallocated_heap (test/browser/test_preallocated_heap*)
    and Module.buffer documentation in module.rst and
    Deploying-Pages.rst, which tested and documented the asm.js-only
    Module.buffer feature (Module.buffer is not used by Wasm or
    wasm2js).
  • Remove stale asm.js, .mem, and fastcomp references in
    SINGLE_FILE, --closure, and --emit-symbol-map documentation and
    comments across tools/ and test/.

@sbc100 sbc100 changed the title [NFC] Remove stale asm.js and fastcomp references and dead test files Remove stale asm.js and fastcomp references and dead test files. NFC Oct 9, 2026
@sbc100
sbc100 requested a review from kripken October 9, 2026 05:46
@sbc100
sbc100 marked this pull request as ready for review October 9, 2026 05:46
@sbc100
sbc100 force-pushed the remove-asmjs-remnants branch 2 times, most recently from 7a4d2af to e6bb6d5 Compare October 9, 2026 06:01
@sbc100
sbc100 requested a review from dschuff October 9, 2026 06:02
@sbc100
sbc100 force-pushed the remove-asmjs-remnants branch from e6bb6d5 to fa8c54b Compare October 9, 2026 06:30
sbc100 added a commit that referenced this pull request Oct 9, 2026
Remove orphaned test source, output, and codesize expectation files
under `test/` that are no longer referenced by any tests.

Split out from #27935
@sbc100
sbc100 force-pushed the remove-asmjs-remnants branch from fa8c54b to 1be0298 Compare October 9, 2026 16:50
@sbc100

sbc100 commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

@kripken maybe you want to chime on this one, since there are some wording changes, not just pure deletion.

@sbc100 sbc100 changed the title Remove stale asm.js and fastcomp references and dead test files. NFC Remove stale asm.js and fastcomp references and dead tests. NFC Oct 9, 2026
Remove leftover `asm.js` and `fastcomp` references and tests that are no
longer used:

- Remove `test/invoke_i.cpp`, two `fastcomp` `invoke_*` tests, and the
  disabled `test_global_inits` test in `test/test_other.py` that have
  been skipped since the `fastcomp` era.
- Remove `test_preallocated_heap` (`test/browser/test_preallocated_heap*`)
  and `Module.buffer` documentation in `module.rst` and
  `Deploying-Pages.rst`, which tested and documented the `asm.js`-only
  `Module.buffer` feature (`Module.buffer` is not used by Wasm or
  `wasm2js`).
- Remove stale `asm.js`, `.mem`, and `fastcomp` references in
  `SINGLE_FILE`, `--closure`, and `--emit-symbol-map` documentation and
  comments across `tools/` and `test/`.
@sbc100
sbc100 force-pushed the remove-asmjs-remnants branch from 1be0298 to 50c0b61 Compare October 9, 2026 23:02
Comment thread test/test_browser.py
# Preallocating the buffer in this was is asm.js only (wasm needs a Memory).
@requires_wasm2js
def test_preallocated_heap(self):
self.btest_exit('test_preallocated_heap.c', cflags=['-sWASM=0', '-sIMPORTED_MEMORY', '-sINITIAL_MEMORY=16MB', '-sABORTING_MALLOC=0', '--shell-file', test_file('browser/test_preallocated_heap_shell.html')])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why was this a dead test?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Pre-allocating the buffer via Module.buffer is an asm.js thing. It never worked with Wasm and I don't think it ever worked with wasm2js either.

The test erronously passes, even though Module.buffer is completely ignored (and always has been since asm.js days)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see, thanks.

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm otherwise

@sbc100
sbc100 enabled auto-merge (squash) October 9, 2026 23:24
@sbc100
sbc100 disabled auto-merge October 12, 2026 18:40
@sbc100
sbc100 merged commit 0479680 into emscripten-core:main Oct 12, 2026
41 checks passed
@sbc100
sbc100 deleted the remove-asmjs-remnants branch October 12, 2026 18:40
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