Bug 1639153 - Part 1: Reserve two slots after stack arguments for the future tls...
commitb5803b139b07f10200b25b8ea4e8c33b9e82ac92
authorDmitry Bezhetskov <dbezhetskov@igalia.com>
Thu, 6 Aug 2020 07:41:50 +0000 (6 07:41 +0000)
committerDmitry Bezhetskov <dbezhetskov@igalia.com>
Thu, 6 Aug 2020 07:41:50 +0000 (6 07:41 +0000)
tree48e7018cce504a7f8745b6ce8cfe6916a3410188
parente6c0d318606e1bee4ee885a8448c0e8dcab2a972
Bug 1639153 - Part 1: Reserve two slots after stack arguments for the future tls preservation. r=lth

We are going to remove Frame::tls and support trampolines for indirect calls, so we need to get rid of using Frame::tls.
In this and the followup patches I will iteratively remove all dependencies of Frame::tls and remove it eventually.

In this patch I changed wasm ABI to allocate two stack slots after stack args to preserve caller's and callee's tls'es in the near future.

Differential Revision: https://phabricator.services.mozilla.com/D82881
16 files changed:
js/src/jit/CodeGenerator.cpp
js/src/jit/MacroAssembler.h
js/src/jit/arm/Assembler-arm.h
js/src/jit/arm64/Assembler-arm64.h
js/src/jit/mips32/Assembler-mips32.h
js/src/jit/mips64/Assembler-mips64.h
js/src/jit/none/MacroAssembler-none.h
js/src/jit/x64/Assembler-x64.h
js/src/jit/x86/Assembler-x86.h
js/src/wasm/WasmBaselineCompile.cpp
js/src/wasm/WasmBaselineCompile.h
js/src/wasm/WasmGC.cpp
js/src/wasm/WasmGC.h
js/src/wasm/WasmIonCompile.cpp
js/src/wasm/WasmStubs.cpp
js/src/wasm/WasmTypes.h