-
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 #4541
Remove Simd.Js Code #4541
Conversation
FYI @arunetm |
Mainly removed |
@@ -289,6 +289,9 @@ template<> Types RegisterSpace::GetRegisterSpaceType<AsmJsSIMDValue>(){return WA | |||
} | |||
} | |||
|
|||
// The offset currently carries the total size of the funcInfo after handling the last type | |||
funcInfo->SetTotalSizeinBytes(offset); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This is some bug fix right? nothing to do with SIMD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We used to assume simd to be the last type in asm.js/wasm. With this we recalculated the size in bytes.
Without simd, it makes more sense to cache the size at the time we calculate everything and just give it back afterward, without having to know which type is last nor duplicating the math.
See AsmJsFunctionInfo::GetTotalSizeinBytes()'s implementation change for details
d088e1d
to
1bd7096
Compare
You're right. It doesn't really make sense to have a runtime check here. We'll get bad result is wasm.simd is disabled. |
Any reason someone shouldn't adopt this and get it merged? |
Just waiting on sign off |
@Cellule I'm very sorry about that! I completely missed it. I'll try to review it ASAP. I'm also tagging @arunetm He could also assign a back-up reviewer. FYI @Cellule I moved to a different team, so it might be a good idea to also, always assign @arunetm as a reviewer for all SIMD-related items in case I miss github notifications. |
ping @agarwal-sandeep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1bd7096
to
e3a7c54
Compare
LGTM |
e3a7c54
to
ed1bfb1
Compare
Closes #3274
This change is