diff options
author | 2023-05-19 11:11:56 -0700 | |
---|---|---|
committer | 2023-05-19 11:18:11 -0700 | |
commit | f910d791f9ba3f573b4480853dc6b65b57055807 (patch) | |
tree | 7ae230540d9f526db0fc3e4f416c781e41c1718f /src/bun.js/bindings/NodeVMScript.h | |
parent | d6223c7f739c8159f785edae250c13b0f041ab76 (diff) | |
download | bun-f910d791f9ba3f573b4480853dc6b65b57055807.tar.gz bun-f910d791f9ba3f573b4480853dc6b65b57055807.tar.zst bun-f910d791f9ba3f573b4480853dc6b65b57055807.zip |
[node:vm] Make `vm.runInThisContext` 10x faster
Diffstat (limited to 'src/bun.js/bindings/NodeVMScript.h')
-rw-r--r-- | src/bun.js/bindings/NodeVMScript.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/bindings/NodeVMScript.h b/src/bun.js/bindings/NodeVMScript.h index 3181e8291..68ddd4c6a 100644 --- a/src/bun.js/bindings/NodeVMScript.h +++ b/src/bun.js/bindings/NodeVMScript.h @@ -63,7 +63,6 @@ public: DECLARE_VISIT_CHILDREN; mutable WriteBarrier<JSC::DirectEvalExecutable> m_cachedDirectExecutable; - mutable WriteBarrier<JSC::JSGlobalObject> m_cachedGlobalObject; private: JSC::SourceCode m_source; @@ -79,5 +78,6 @@ private: JSC_DECLARE_HOST_FUNCTION(vmModule_createContext); JSC_DECLARE_HOST_FUNCTION(vmModule_isContext); - +JSC_DECLARE_HOST_FUNCTION(vmModuleRunInNewContext); +JSC_DECLARE_HOST_FUNCTION(vmModuleRunInThisContext); } |