From f910d791f9ba3f573b4480853dc6b65b57055807 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Fri, 19 May 2023 11:11:56 -0700 Subject: [node:vm] Make `vm.runInThisContext` 10x faster --- src/bun.js/bindings/NodeVMScript.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bun.js/bindings/NodeVMScript.h') 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 m_cachedDirectExecutable; - mutable WriteBarrier 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); } -- cgit v1.2.3