回档之后的重写。部分问题修复。添加了什么我也忘了
This commit is contained in:
17
src/Bytecode/CallFrame.hpp
Normal file
17
src/Bytecode/CallFrame.hpp
Normal 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; // 编译过的函数体
|
||||
};
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user