-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Simd.js code from ChakraCore - Part 1 (ifdef out) #3296
Remove Simd.js code from ChakraCore - Part 1 (ifdef out) #3296
Conversation
407998a
to
8789706
Compare
@arunetm @Krovatkin fyi |
@Cellule @agarwal-sandeep There's quite a few of |
@Krovatkin We want to give some time before actually removing the code so we can more precisely determine what we actually need for wasm.simd. Also, there is a lot of asm.js code that we don't want anymore either, I am thinking mostly of the bytecode generator. Once we merge this PR, I suggest to integrate master into wasm.simd branch and that way we could start figuring out that code sooner. I would recommend at that time to rename the occurences of |
Reviewed 415 of 415 files at r1. lib/Backend/BailOut.cpp, line 825 at r1 (raw file):
Missed this block lib/Backend/BailOut.cpp, line 886 at r1 (raw file):
Missed this block lib/Backend/BailOut.cpp, line 1040 at r1 (raw file):
I doubt wasm simd will need this since we don't have bailouts in wasm. But it's okay to leave this for a later time. lib/Backend/GlobOpt.cpp, line 16404 at r1 (raw file):
Instead of copy/pasting the Assert here could we do Assert(
#ifdef ENABLE_SIMDJS
instrBailoutKind == IR::BailOutSimd128F4Only ||
instrBailoutKind == IR::BailOutSimd128I4Only ||
#endif
instrBailoutKind == IR::BailOutIntOnly ||
instrBailoutKind == IR::BailOutExpectingInteger ||
instrBailoutKind == IR::BailOutOnNotPrimitive ||
instrBailoutKind == IR::BailOutNumberOnly ||
instrBailoutKind == IR::BailOutPrimitiveButString); Comments from Reviewable |
Sounds like a plan. Though, I'd prefer to merge two more changes (they are pretty stable and cleaned up) into |
Review status: all files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. lib/Backend/BailOut.cpp, line 825 at r1 (raw file): Previously, Cellule (Michael Ferris) wrote…
Will leave it for when we change the function signature to remove isSimd* parameters lib/Backend/BailOut.cpp, line 886 at r1 (raw file): Previously, Cellule (Michael Ferris) wrote…
Will leave it for when we change the function signature to remove isSimd* parameters lib/Backend/GlobOpt.cpp, line 16404 at r1 (raw file): Previously, Cellule (Michael Ferris) wrote…
That generates C2121 error Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. Comments from Reviewable |
8789706
to
00fc551
Compare
…Part 1 (ifdef out) Merge pull request #3296 from agarwal-sandeep:disablesimdjs Put SIMDjs code in library, language and backend under #ifdef ENABLE_SIMDJS undef ENABLE_SIMDJS Some portion of SIMD code (IRType, OpCodesSimd, AsmJsBuiltInNames etc.) is used in WASM simd so it is left as it is. This will be take care of under #3274 Haven't ifdef'd TypeIds_SIMD* as that will make the TypeIds enum messy. During final cleanup we can clean this. This reduce Chakra.dll x64 release binary size by 0.52 MB and ChakraCore x64 release binary size by 0.43 MB
…kraCore - Part 1 (ifdef out) Merge pull request #3296 from agarwal-sandeep:disablesimdjs Put SIMDjs code in library, language and backend under #ifdef ENABLE_SIMDJS undef ENABLE_SIMDJS Some portion of SIMD code (IRType, OpCodesSimd, AsmJsBuiltInNames etc.) is used in WASM simd so it is left as it is. This will be take care of under #3274 Haven't ifdef'd TypeIds_SIMD* as that will make the TypeIds enum messy. During final cleanup we can clean this. This reduce Chakra.dll x64 release binary size by 0.52 MB and ChakraCore x64 release binary size by 0.43 MB
…code from ChakraCore - Part 1 (ifdef out) Merge pull request #3296 from agarwal-sandeep:disablesimdjs Put SIMDjs code in library, language and backend under #ifdef ENABLE_SIMDJS undef ENABLE_SIMDJS Some portion of SIMD code (IRType, OpCodesSimd, AsmJsBuiltInNames etc.) is used in WASM simd so it is left as it is. This will be take care of under #3274 Haven't ifdef'd TypeIds_SIMD* as that will make the TypeIds enum messy. During final cleanup we can clean this. This reduce Chakra.dll x64 release binary size by 0.52 MB and ChakraCore x64 release binary size by 0.43 MB
Put SIMDjs code in library, language and backend under #ifdef ENABLE_SIMDJS
undef ENABLE_SIMDJS
Some portion of SIMD code (IRType, OpCodesSimd, AsmJsBuiltInNames etc.) is used in WASM simd so it is left as it is. This will be take care of under #3274
Haven't ifdef'd TypeIds_SIMD* as that will make the TypeIds enum messy. During final cleanup we can clean this.
This reduce Chakra.dll x64 release binary size by 0.52 MB and ChakraCore x64 release binary size by 0.43 MB