Use Func* instead of Class* for minstr C++ helpers
commit1de7fa1c7b7098c284dee3390c992a1c43a3a028
authorJames Wu <jjwu@fb.com>
Mon, 29 Aug 2022 18:10:41 +0000 (29 11:10 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 29 Aug 2022 18:10:41 +0000 (29 11:10 -0700)
tree227fa1ca37d92d04f8bce7a3769687b5d1c69829
parent14a26df4cd363f0ed48183e4552707030a865c50
Use Func* instead of Class* for minstr C++ helpers

Summary:
Instead of using Class* to pass the context, pass the function pointer. Then pass the modulename through the function pointer.

This allows us to check modules correctly in the next diff when using these helpers.

https://our.intern.facebook.com/intern/servicelab/1401288388/
https://our.intern.facebook.com/intern/servicelab/1401288387/
https://our.intern.facebook.com/intern/servicelab/1301288740/
https://our.intern.facebook.com/intern/servicelab/1401288389/
https://our.intern.facebook.com/intern/servicelab/1501288469/
https://our.intern.facebook.com/intern/servicelab/1101287071/
https://our.intern.facebook.com/intern/servicelab/1501288471/
https://our.intern.facebook.com/intern/servicelab/1501288470/

Reviewed By: oulgen

Differential Revision: D39033444

fbshipit-source-id: 360a73af55975f4c57652405bb95618ad9771859
hphp/runtime/vm/jit/irlower-minstr.cpp
hphp/runtime/vm/jit/minstr-helpers.h