Commit message:
[wasm][cleanup] Remove last remaining remnants of asm.js
Clean up all remaining legacy asm.js-specific code paths, unused
parameters, dead enum/bit fields, obsolete tests, and inaccurate
comments across the V8 codebase to improve overall maintainability
and structure.
This finalizes decommissioning the remnants of legacy asm.js support:
- Removed WasmElemSegment::FunctionIndexingMode enum and indexing_mode
parameters / field from WasmModuleBuilder.
Updated three calling tests to omit the 4th argument.
- Removed unused memory / asmjs_memory_buffer parameter and member in
InstanceBuilder and InstantiateToInstanceObject.
- Removed unused memory parameter in WasmEngine::SyncInstantiate.
Omitted the null JSArrayBuffer handle across all its call sites
(including src/wasm/wasm-js.cc, src/runtime/runtime-test-wasm.cc,
src/wasm/c-api.cc, and all 10 test and fuzzer files).
- Reclaimed exactly 1 bit in JSArrayBuffer flags by removing
IsAsmJsMemoryBit (realigning subsequent fields, and decrementing
kFlagCount from 7 to 6).
- Removed is_asm_js_memory from JSArrayBufferFlags in Torque.
- Deleted test/mjsunit/sandbox/regress-430960844.js and
test/mjsunit/sandbox/regress-502356099.js as they are obsolete
sandbox regression tests that specifically rely on asm.js being
compiled to Wasm to trigger stack/frame corruption.
- Removed obsolete asm.js error location comment and source position
assignment from src/compiler/turboshaft/wasm-wrappers-inl.h.
- Cleaned up leftover comments referencing asm.js across gni/v8.gni,
src/codegen/compiler.cc, src/objects/shared-function-info-inl.h,
src/objects/call-site-info.h, src/wasm/wasm-code-manager.cc, and
src/wasm/wasm-engine.cc.
- Removed stale src/asmjs/ reference from agent infrastructure
(agents/prompts/common.md, agents/skills/v8-structure/SKILL.md).
TAG=agy
R=jkum...@chromium.org