Skip to content

Conversation

@MikeHolman
Copy link
Contributor

@MikeHolman MikeHolman commented Mar 6, 2018

Previously we were assuming cdecl. And while this was true for floor, it was not true for floorf in the CRT version that ChakraFull uses. However, on the version of CRT I'm using with ChakraCore, floorf is cdecl.

Because the calling convention is not reliable, I added methods in chakra for the JIT to call to ensure the calling convention is what we expect (at least for MSVC builds).

Also, since it's our function now, we can use callee cleanup.

@MikeHolman
Copy link
Contributor Author

Reviewed offline by @LouisLaf and @Penguinwizzard.

@chakrabot chakrabot merged commit ae56643 into chakra-core:release/1.8 Mar 6, 2018
chakrabot pushed a commit that referenced this pull request Mar 6, 2018
…erent calling conventions, so use our own

Merge pull request #4785 from MikeHolman:crtcdecl

Previously we were assuming cdecl. And while this was true for floor, it was not true for floorf in the CRT version that ChakraFull uses. However, on the version of CRT I'm using with ChakraCore, floorf is cdecl.

Because the calling convention is not reliable, I added methods in chakra for the JIT to call to ensure the calling convention is what we expect (at least for MSVC builds).

Also, since it's our function now, we can use callee cleanup.
chakrabot pushed a commit that referenced this pull request Mar 6, 2018
… with different calling conventions, so use our own

Merge pull request #4785 from MikeHolman:crtcdecl

Previously we were assuming cdecl. And while this was true for floor, it was not true for floorf in the CRT version that ChakraFull uses. However, on the version of CRT I'm using with ChakraCore, floorf is cdecl.

Because the calling convention is not reliable, I added methods in chakra for the JIT to call to ensure the calling convention is what we expect (at least for MSVC builds).

Also, since it's our function now, we can use callee cleanup.
chakrabot pushed a commit that referenced this pull request Mar 7, 2018
…re ceil/floor with different calling conventions, so use our own

Merge pull request #4785 from MikeHolman:crtcdecl

Previously we were assuming cdecl. And while this was true for floor, it was not true for floorf in the CRT version that ChakraFull uses. However, on the version of CRT I'm using with ChakraCore, floorf is cdecl.

Because the calling convention is not reliable, I added methods in chakra for the JIT to call to ensure the calling convention is what we expect (at least for MSVC builds).

Also, since it's our function now, we can use callee cleanup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants