回档之后的重写。部分问题修复。添加了什么我也忘了

This commit is contained in:
2026-02-01 15:52:28 +08:00
parent 61bffdc743
commit aea716ced2
50 changed files with 3676 additions and 2997 deletions

View File

@@ -0,0 +1,17 @@
#pragma once
#include <Bytecode/CompiledFunction.hpp>
#include <Bytecode/Instruction.hpp>
#include <Bytecode/Chunk.hpp>
namespace Fig
{
struct CallFrame
{
uint64_t ip; // 函数第一个指令 index
uint64_t base; // 第一个参数在栈中位置偏移量
CompiledFunction fn; // 编译过的函数体
};
};