Use ActRec::kHasClassBit
commitf0cabb42417a4c57b45aa812adcc86851ea3a9bb
authorMark Williams <mwilliams@fb.com>
Fri, 12 Aug 2016 15:28:08 +0000 (12 08:28 -0700)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Fri, 12 Aug 2016 15:36:12 +0000 (12 08:36 -0700)
tree2361affaa6ae27487865e8b153bb4d6d19c3857c
parent693e604858de09dfecba405c28020b313ce2137d
Use ActRec::kHasClassBit

Summary:
There were lots of places testing, oring and adding or subtracting 1
rather than using the constant kHasClassBit.

Also change the type from uintptr_t so that they can be used as vasm
immediates, and rewrite the uses of ~kHasClassBit so they still work,
and produce smaller, faster code.

Reviewed By: kodafb

Differential Revision: D3707812

fbshipit-source-id: 17a7890f58ea4990934d1642511e7a7470464075
hphp/runtime/vm/act-rec-inl.h
hphp/runtime/vm/act-rec.h
hphp/runtime/vm/jit/code-gen-helpers.cpp
hphp/runtime/vm/jit/irlower-act-rec.cpp
hphp/runtime/vm/jit/irlower-class-func.cpp
hphp/runtime/vm/jit/irlower-ctx.cpp
hphp/runtime/vm/jit/irlower-lookup-method.cpp
hphp/runtime/vm/jit/irlower-refcount.cpp
hphp/runtime/vm/jit/irlower-ret.cpp