Skip to content
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

Use constexpr for register constants #31

Open
danluu opened this issue Apr 29, 2016 · 0 comments
Open

Use constexpr for register constants #31

danluu opened this issue Apr 29, 2016 · 0 comments

Comments

@danluu
Copy link
Contributor

danluu commented Apr 29, 2016

inc/NativeJIT/Nodes/ParameterNode.h

        // Integer parameters are passed in RCX, RDX, R8, and R9.
        // Use constants to encode registers. See #31.
#ifdef NATIVEJIT_PLATFORM_WINDOWS
        const uint8_t idMap[] = {1, 2, 8, 9};
#else
        const uint8_t idMap[] = {7, 6, 2, 1, 8, 9};
#endif

See also #24

danluu added a commit to danluu/NativeJIT that referenced this issue May 20, 2016
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

No branches or pull requests

1 participant