Remove Simd.js code from ChakraCore - Part 1 (ifdef out)
simd.js is no longer planned for in its current form. V8 has already removed it and ChakraCore should also remove it.
Since some code of simd.js can be reused for WASM simd. In first part of change try to ifdef out simd.js specific code to not build and then in second part remove code which is not needed for WASM simd.
@Krovatkin I have ifdef'd out most of library and runtime code abd32f52.
Are the following used in WASM simd?
liveSimd128*Syms simd128*SymsOnEntry likelySimd128*SymsUsedBeforeDefined forceSimd*F4SymsOnEntry argOutSimd*Syms liveSimd128*Syms Simd* Simd* Simd*
@agarwal-sandeep The last 3 are definitely used.
It is a little bit less clear-cut w/ the remaining ones. While there's no type specialization in asm.js/wasm, CSE seems to rely on liveXXXSyms bit vectors (see GlobOpt::NewIntConstantValue) and if we are planning on enabling CSE & const folding for SIMD types, we might need these vectors. Also, the bailout infrastructure uses liveSimd128XXX vectors, so if we enable bailouts for asm.js/wasm, again, we might need these vectors.
I was wondering if it makes sense to hold off for a little bit on ripping out/if 0 simd.js code until the spec stabilizes and Chakra team decides on which optimizations it would like to enable for WASM? Otherwise, there's a chance we might need to put this code back in later on :-)
Can we get @LouisLaf 's opinion on the matter?
Thanks @Krovatkin. In this part of the change I am not removing any code just putting everything under #ifdef ENABLE_SIMDJS which by default is not defined. We have another issue #3274 opened to remove all simdjs related code which is not used for WASM simd after we have it ready. For now I will go ahead and ifdef out except the last 3.
#3296 got merged