Use IsTypeStruct positive case irgen optimizations for AsTypeStruct
commit588e4f67cb44963a818de9b9ae3fad9788d1168a
authorOguz Ulgen <oulgen@fb.com>
Thu, 17 May 2018 15:27:15 +0000 (17 08:27 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 17 May 2018 15:34:19 +0000 (17 08:34 -0700)
tree1b0f9a7170be32c024f9fa2c3761b9a2e0ee2d98
parentaa06f0fb57e829644eba1319dea385729f7f8315
Use IsTypeStruct positive case irgen optimizations for AsTypeStruct

Summary:
as per title

There is a lot more we can do here, like if we know it is gonna fail, we can directly go into the failure path etc but for the time being this will do. Once the feature is shipped, I can revisit to add further optimizations

Reviewed By: markw65

Differential Revision: D8023902

fbshipit-source-id: d26fc3f8a75c8d27ea96d0f9fabc7984a8626a93
hphp/runtime/vm/jit/irgen-types.cpp