@@ -9,9 +9,6 @@ open Comp_wasm_prim;
99
1010let sources : ref (list ((Expression . t , Grain_parsing . Location . t ))) = ref ([] );
1111
12- /* [TODO] Should probably be a config variable */
13- let memory_debugging_enabled = false ;
14-
1512/** Environment */
1613
1714type codegen_env = {
@@ -1298,7 +1295,7 @@ let compile_array_op = (wasm_mod, env, arr_imm, op) => {
12981295 ),
12991296 get_arr() ,
13001297 ),
1301- /* [ TODO] decref the old item more efficiently (using a swap slot, most likely) */
1298+ // TODO: decref the old item more efficiently (using a swap slot, most likely)
13021299 Expression . Tuple_extract . make(
13031300 wasm_mod,
13041301 Expression . Tuple_make . make(
@@ -2375,7 +2372,7 @@ let compile_prim0 = (wasm_mod, env, p0): Expression.t => {
23752372
23762373let compile_prim1 = (wasm_mod, env, p1, arg, loc): Expression . t => {
23772374 let compiled_arg = compile_imm(wasm_mod, env, arg);
2378- /* TODO: Overflow checks? */
2375+ // TODO: Overflow checks?
23792376 switch (p1) {
23802377 | AllocateArray => allocate_uninitialized_array(wasm_mod, env, arg)
23812378 | AllocateTuple => allocate_uninitialized_tuple(wasm_mod, env, arg)
@@ -2482,7 +2479,7 @@ let compile_prim1 = (wasm_mod, env, p1, arg, loc): Expression.t => {
24822479 ] ,
24832480 )
24842481 | Throw =>
2485- // [ TODO] When we have exception handling, revisit whether there is any GC required here (#813)
2482+ // TODO(#813): When we have exception handling, revisit whether there is any GC required here
24862483 Expression . Block . make(
24872484 wasm_mod,
24882485 gensym_label("throw" ),
0 commit comments