stage2 修复全局变量未完成的问题 提供错误处理解析

This commit is contained in:
zzy committed 2026-09-25 13:46:07 +08:00
1 parent c0a86ea552
commit 0b8f649818
11 files changed
+317 -18

No files matched your search

+1 -4
View File
@@ -1674,11 +1674,8 @@ L_SPL_STORE:
spl_vm_val_t _v = POP();
spl_vm_val_t _off = POP();
void *_addr = spl_vm_xlate(vm, _off, spl_type_size(ins->type));
if (!_addr) {
fprintf(stderr, "vm: STORE bad off=%zu sz=%d\n", (size_t)_off, (int)spl_type_size(ins->type));
spl_vm_backtrace(vm, vm->fp);
if (!_addr)
VM_ERROR("STORE: invalid address");
}
memcpy(_addr, &_v, spl_type_size(ins->type));
DISPATCH();
}