fix: 数组属性存储机制(array_prop_count 显式元素数 + shape 属性偏移 + IC/prop_forge 对齐)

This commit is contained in:
2026-08-07 21:53:45 +08:00
parent db04bc25c9
commit 31542a2576
7 changed files with 103 additions and 41 deletions
-1
View File
@@ -36,7 +36,6 @@ impl Emitter {
fn emit_string_literal_expression(
&self, s: &oxide_parser::StringLiteral, ctx: &mut CompileCtx,
) -> Result<u32, String> {
eprintln!("[DBG] string literal value={:?}", s.value.as_str());
let idx = ctx.add_constant(Constant::String(s.value.to_string()));
let r = ctx.alloc_reg();
ctx.inst(Inst::load_const(Operand::Reg(r), idx));