Convert ImplicitContext from c++ memory to NativeDatanightly-2021.12.01
commit82ae8e4a35ae1f849c08d81ca66fc0bed5ca87f5
authorOguz Ulgen <[email protected]>
Wed, 1 Dec 2021 01:39:22 +0000 (30 17:39 -0800)
committerFacebook GitHub Bot <[email protected]>
Wed, 1 Dec 2021 01:43:23 +0000 (30 17:43 -0800)
treef8fa987d11151e9ef8ca46cc9218484e39cb3d56
parent5683de374a98eff3ffc31d1c6c878beaead21d8c
Convert ImplicitContext from c++ memory to NativeData

Summary:
So that
* Memory management/Ref counting can be done properly
* We dont need to store them in execution context
* We dont need ints to denote their locations
* Can be optimized from the jit

On the next diff, I plan to optimize the IR opcode so that it doesnt call c++.

Reviewed By: jano

Differential Revision: D32269810

fbshipit-source-id: 195614c5e59d688122258a6e679a778251462e30
21 files changed:
hphp/doc/bytecode.specification
hphp/doc/ir.specification
hphp/hhbbc/interp.cpp
hphp/runtime/base/execution-context.h
hphp/runtime/base/implicit-context.cpp
hphp/runtime/base/implicit-context.h
hphp/runtime/ext/asio/ext_resumable-wait-handle.h
hphp/runtime/ext/hh/ext_hh.cpp
hphp/runtime/ext/hh/ext_hh.php
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/jit/dce.cpp
hphp/runtime/vm/jit/ir-opcode.cpp
hphp/runtime/vm/jit/irgen-builtin.cpp
hphp/runtime/vm/jit/irgen-resumable.cpp
hphp/runtime/vm/jit/irlower-intrinsic.cpp
hphp/runtime/vm/jit/irlower-load-store.cpp
hphp/runtime/vm/jit/memory-effects.cpp
hphp/runtime/vm/jit/native-calls.cpp
hphp/runtime/vm/jit/translator-runtime.cpp
hphp/runtime/vm/jit/translator-runtime.h
hphp/runtime/vm/jit/translator.cpp