Fix codegen bug when Class* doesn't fit in a dword
commitd97f90e0502e77d7ca3074745be44c7b96f98235
authorBert Maher <bertrand@fb.com>
Wed, 30 Jul 2014 03:39:29 +0000 (29 20:39 -0700)
committerfacebook-github-bot <githubbot@fb.com>
Wed, 30 Jul 2014 04:00:23 +0000 (29 21:00 -0700)
tree66bf77407497cb72e5d03fb4ec2de17018f8f51f
parenta0be4e54492b7af6dee2aae194073f3df064b8b2
Fix codegen bug when Class* doesn't fit in a dword

Summary: We were assuming that Class* fits in 32-bits, but that's not
necessarily the case.  If it doesn't fit, fall back to using a scratch
register.

Reviewed By: @markw65

Differential Revision: D1465175
hphp/runtime/vm/jit/code-gen-x64.cpp