Modify object-data.h to use MemberLookupContextnightly-2022.08.04
commit4ebac26856464d919a8cdd4e359857a09218b93f
authorJames Wu <[email protected]>
Thu, 4 Aug 2022 01:25:02 +0000 (3 18:25 -0700)
committerFacebook GitHub Bot <[email protected]>
Thu, 4 Aug 2022 01:25:02 +0000 (3 18:25 -0700)
tree6c36dfa89f7fc48998e8bd6f1f655109db348a77
parent7ef9484a820e082c8e9374c42f70a21825d5853a
Modify object-data.h to use MemberLookupContext

Summary:
This diff moves object-data.h to use MemberLookupContext instead of class*. It leaves a few TODOs for other places to propagate, but overall, as far as I can tell, most endpoints now correctly pass in the context.

After this change, we can begin making actual behavior changes depending on the moduleName() field of MemberLookupContext, allowing us to check modules during property accesses.

Reviewed By: oulgen

Differential Revision: D38086420

fbshipit-source-id: 24594da29fd15b1efa04162c224450afda7e1acc
20 files changed:
hphp/runtime/base/apc-object.cpp
hphp/runtime/base/object-data.cpp
hphp/runtime/base/object-data.h
hphp/runtime/base/variable-serializer.cpp
hphp/runtime/base/variable-unserializer.cpp
hphp/runtime/debugger/debugger_thrift_buffer.cpp
hphp/runtime/ext/datetime/ext_datetime.cpp
hphp/runtime/ext/json/JSON_parser.cpp
hphp/runtime/ext/libxml/ext_libxml.cpp
hphp/runtime/ext/pdo/ext_pdo.cpp
hphp/runtime/ext/reflection/ext_reflection.cpp
hphp/runtime/ext/soap/encoding.cpp
hphp/runtime/ext/soap/ext_soap.cpp
hphp/runtime/ext/soap/ext_soap.h
hphp/runtime/ext/spl/ext_spl.cpp
hphp/runtime/ext/std/ext_std_file.cpp
hphp/runtime/ext/std/ext_std_variable.cpp
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/jit/minstr-helpers.h
hphp/runtime/vm/member-operations.h