Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/codegen/compile.ml
Original file line number Diff line number Diff line change
Expand Up @@ -851,10 +851,6 @@ module Heap = struct
let get_heap_base env =
G.i (GlobalGet (nr (E.get_global env "__heap_base")))

let register_globals env =
(* end-of-heap pointer, we set this to __heap_base upon start *)
E.add_global32 env "end_of_heap" Mutable 0xDEADBEEFl

let get_total_allocation env =
E.call_import env "rts" "get_total_allocations"

Expand Down Expand Up @@ -8159,7 +8155,6 @@ and conclude_module env start_fi_o =
let compile mode rts (prog : Ir.prog) : Wasm_exts.CustomModule.extended_module =
let env = E.mk_global mode rts IC.trap_with Lifecycle.end_ in

Heap.register_globals env;
Stack.register_globals env;

IC.system_imports env;
Expand Down