-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cryptography Plugins as per CryptographyPlugins-mt.25/eem.27
Fix regressions in CryptographyPlugins-eem.23. Specifically alignment crashes in DESPlugin>>#primitiveDESCookKey, SHA2Plugin>>#primitiveSHA512ProcessBufferUpdatingHash, SHA2Plugin>>#primitiveSHA256ProcessBufferUpdatingHash with Clang on SSE x86_64, which requires 128-bit stack alignment. Fix type-casting issue on Windows 64-bit systems. We must use "long long" if we mean "double word". Polish: Now there is an API call (isLong64s:) to determine if something is double words, use it. There is no need to use stackObjectValue: if its result is tested via isBytes:, isWords: et al. These methods check for immediates, so the check in stackObjectValue: is redundant and expensive (it must set the failed flag which should be tested later). Don't bother assigning the result of firstIndexableField: to an intermediate variable; its return type is void *, so it's perfect as an argument to memcpy: et al. Amalgamate tests using and: to have as few ^interpreterProxy primitiveFailFor: PrimErrBadArgument clauses as possible (greater instruction cache density). Use methodReturnReceiver (ditto)
- Loading branch information
1 parent
97b4903
commit 27d2d9f
Showing
4 changed files
with
116 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.