toolchain: banner purge + WHY-only comment sweep (rule 8)
selfhost/, cmd/, internal/ join the tree-wide sweep: every section banner dies (91 selfhost + the cmd C-style dividers -> 0); narration and stale contracts deleted (pre-#22 bundler notes, retired single-PT_LOAD and no-archive claims, superseded ABI tables); every ref/harec/qbe cite, task cite, encoding/ELF contract, and rule-10 twin pointer kept; lost lifetime/rationale lines restored where the sweep over-cut (elf_globals ownership, kwtab linear-scan). Comment- only proven: all five wwstage tool binaries byte-identical across the sweep; test-commit, test-byteid (161+1399, 0 pinned-divergent), and test-bootstrap (fixed point + 991-995 byte-id) all exit 0. The read-through banked 66 latent-bug leads (checkpoint).
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
// selfhost/cmd/w6a/opcodes.ww — types + constants shared across the
|
||||
// w6a port. Mirrors cmd/w6a/a.h and cmd/w6c/6.out.h.
|
||||
// Mirrors cmd/w6a/a.h and cmd/w6c/6.out.h.
|
||||
|
||||
package w6a;
|
||||
|
||||
// ---- registers + operand kinds (from 6.out.h) -------------------------
|
||||
// These must stay numerically aligned with the C enum so that ww-cgen
|
||||
// output (which reads them via `D_AX(SB)` etc.) lands on the same
|
||||
// integers when read by ww-w6a.
|
||||
// Registers + operand kinds must stay numerically aligned with the
|
||||
// 6.out.h C enum so that ww-cgen output (which reads them via
|
||||
// `D_AX(SB)` etc.) lands on the same integers when read by ww-w6a.
|
||||
def D_NONE: i32 = 0;
|
||||
|
||||
def D_AX: i32 = 1;
|
||||
@@ -52,7 +50,6 @@ def D_BRANCH: i32 = 37;
|
||||
def D_EXTERN: i32 = 38;
|
||||
def D_INDIR: i32 = 39;
|
||||
|
||||
// ---- opcodes ----------------------------------------------------------
|
||||
def A_NOP: i32 = 0;
|
||||
def A_TEXT: i32 = 1;
|
||||
def A_DATA: i32 = 2;
|
||||
@@ -145,8 +142,6 @@ def A_DATAR: i32 = 61;
|
||||
// with DIVQ.
|
||||
def A_CQO: i32 = 66;
|
||||
|
||||
// ---- structs (mirror cmd/w6a/a.h) --------------------------------------
|
||||
|
||||
type aoperand = struct {
|
||||
atype: i32, // D_NONE / D_AX..D_R15 / D_CONST / D_INDIR / D_EXTERN / D_BRANCH
|
||||
reg: i32,
|
||||
|
||||
Reference in New Issue
Block a user