From: Ian Jackson Date: Fri, 20 Nov 2020 22:46:06 +0000 (+0000) Subject: wip lowering, debugging X-Git-Tag: otter-0.2.0~458 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fa6c0c68f53435185fae57385b602affe6232880;p=otter.git wip lowering, debugging Signed-off-by: Ian Jackson --- diff --git a/templates/script.ts b/templates/script.ts index e3db1f89..5d672a77 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -513,6 +513,8 @@ function lower_pieces(targets_todo: LowerTodoList): }); } + console.log('LOWER PLAN', plan); + for (const pe of plan) { for (const e of pe.content) { if (e.p.held != null && e.p.held != us) { @@ -530,6 +532,8 @@ function lower_pieces(targets_todo: LowerTodoList): if (pe.z_top != null) z_top = pe.z_top; let z_bot = pe.z_bot; let zrange = wasm_bindgen.range(z_bot, z_top, pe.content.length); + console.log('LOQER PLAN PE', + pe, z_bot, z_top, pe.content.length, zrange); for (const e of pe.content) { let z = zrange.next(); api_piece(api, "setz", e.piece, e.p, { z });