阶段4-2c:vm_test V2 重写(EMIT 宏/手拼 4 测试/槽宽读写)+ slot_addr 公开访问器

This commit is contained in:
2026-08-26 10:19:47 +08:00
parent 06ff7d8359
commit 5eda33fed6
3 changed files with 149 additions and 138 deletions
+2
View File
@@ -90,6 +90,8 @@ namespace vm {
const uint8_t* data() const;
/// @brief 值区字节数。
size_t data_len() const;
/// @brief 槽表条目地址(值段内偏移;越界返回 0)。
uint32_t slot_addr(uint32_t slot) const;
/// @brief 当前帧寄存器值(i < nregs)。
int64_t reg(uint8_t i) const;
/// @brief 当前帧寄存器数。