-
- Downloads
Bug 1728549 - Remove some platform dependencies in WasmBCMemory. r=jseward
Remove platform dependencies that depend only on whether the platform has a HeapReg or not, by introducing a properly named #define for this and rewriting the code slightly. Introduce a RegIntptr alias to express integer-representing-pointer appropriately on different platforms. Introduce a templated move() method for register-to-register moves. Drive-by cleanup: Replace the overloaded free() methods for freeing registers with a templated variant to match what we have for push, pop, need, and move. Document the internal #defines that control the compiler. Differential Revision: https://phabricator.services.mozilla.com/D124642
Showing
- js/src/wasm/WasmBCClass.h 8 additions, 14 deletionsjs/src/wasm/WasmBCClass.h
- js/src/wasm/WasmBCCodegen-inl.h 32 additions, 0 deletionsjs/src/wasm/WasmBCCodegen-inl.h
- js/src/wasm/WasmBCDefs.h 44 additions, 1 deletionjs/src/wasm/WasmBCDefs.h
- js/src/wasm/WasmBCMemory.cpp 51 additions, 54 deletionsjs/src/wasm/WasmBCMemory.cpp
- js/src/wasm/WasmBCRegDefs.h 8 additions, 0 deletionsjs/src/wasm/WasmBCRegDefs.h
- js/src/wasm/WasmBCRegMgmt-inl.h 42 additions, 8 deletionsjs/src/wasm/WasmBCRegMgmt-inl.h
Loading
Please register or sign in to comment