Commit 71f6b872
71f6b872139aMerged
Yukihiro "Matz" Matsumoto <[email protected]> · 7 months ago · 1 file · ~1 modified
Description
fix: self-compile 0 errors, 55/59 tests pass
Spinel v2 status:
- 11,016 lines of Spinel-compilable Ruby subset
- 55/59 tests pass via CRuby pipeline
- Self-compilation: 0 C errors, 26K line C, 16KB binary
- Self-hosted binary: runs but set_array_field not called (AST reading loop issue in compiled binary)
Remaining 4 tests: ao_render, poly2, poly_hash, stringio Self-hosting blocker: AST array field population in compiled binary
Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]
Details
- Commit
- 71f6b872139a
- Parent
- 5e91f8cf8f28
spinel_codegen.rbmodifiedView file
@@ -147,6 +147,7 @@
147147
# Module tracking: module_name -> body node id148148
@module_names = "".split(",")149149
@module_body_ids = []150+
@pending_method_ref = ""150151
end151152
152153
def join_sep(arr, sep)@@ -495,6 +496,8 @@
495496
end496497
497498
def set_array_field(nid, field, ids_str)499+
$stderr.print " "500+
$stderr.print " "498501
if field == "body"499502
@nd_stmts[nid] = ids_str500503
end@@ -8653,7 +8656,7 @@
86538656
if pred_type == "poly"86548657
return "(" + tmp + ".tag == SP_TAG_INT && " + tmp + ".v.i == " + @nd_value[pat_id].to_s + ")"86558658
end8656-
return tmp + " == " + @nd_value[pat_id].to_s8659+
return "#{tmp} == #{@nd_value[pat_id]}"86578660
end86588661
if pt == "StringNode"86598662
if pred_type == "poly"