From b05c3ae5f7736ea90c48d0ab99d820af1a3af1b6 Mon Sep 17 00:00:00 2001 From: Emin Arslan Date: Sun, 17 May 2026 19:56:33 +0300 Subject: [PATCH] vm: modify make_vm to take globals directly instead of constructing an empty global table --- lib/vm/vm.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vm/vm.ml b/lib/vm/vm.ml index e134340..3c4ae90 100644 --- a/lib/vm/vm.ml +++ b/lib/vm/vm.ml @@ -84,8 +84,8 @@ and interpret state = interpret state) | NOOP -> interpret state) -let make_vm instrs constants global_count = - let globals = Array.init global_count (fun x -> if x < (Array.length Native.table) then Native x else Nil) in +let make_vm instrs constants globals = + (*let globals = Array.init global_count (fun x -> if x < (Array.length Native.table) then Native x else Nil) in*) { i = 0; instrs = instrs;