Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frame ¶
type Frame struct {
IP int
Vars map[string]value.Value // Local scope
Fn *value.Lambda // Hàm đang được thực thi
Defers []*value.Lambda // Deferred functions
}
Frame đại diện cho một khung thực thi (Activation Record)
type Runtime ¶
type Runtime struct {
Bytecode []byte
Constants []value.Value
Stack []value.Value
Vars map[string]value.Value // Biến của từng Request (Cho phép ghi)
Globals map[string]value.Value // Chung cho toàn bộ Host (Chỉ đọc)
Builtins []value.Value // Mảng các hàm hệ thống (Siêu nhanh - Index lookup)
Frames []Frame // Call Stack
FrameIdx int // Hiện tại đang ở Frame nào
Energy uint64 // Năng lượng tiêu thụ
Spawner func(s *value.Lambda)
}
func (*Runtime) ExecuteLambda ¶
Click to show internal directories.
Click to hide internal directories.