NativeJIT icon indicating copy to clipboard operation
NativeJIT copied to clipboard

Use constexpr for register constants

Open danluu opened this issue 8 years ago • 0 comments

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 avatar Apr 29 '16 17:04 danluu