chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68f3183
)
wip lowering, debugging
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 20 Nov 2020 22:46:06 +0000
(22:46 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 20 Nov 2020 22:46:06 +0000
(22:46 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index e3db1f89a198f994ec20eac079b378690b2d282a..5d672a77a569efaa198a0d0eb5c4aa4e9d8a36c8 100644
(file)
--- 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 });