@@ -29,8 +29,8 @@ if not table.move then
29
29
end
30
30
end
31
31
32
- local stm_lua_bytecode
33
- local wrap_lua_func
32
+ local lua_bc_to_state
33
+ local lua_wrap_state
34
34
local stm_lua_func
35
35
36
36
-- SETLIST config
@@ -465,7 +465,7 @@ function stm_lua_func(S, psrc)
465
465
return proto
466
466
end
467
467
468
- function stm_lua_bytecode (src )
468
+ function lua_bc_to_state (src )
469
469
-- func reader
470
470
local rdr_func
471
471
@@ -929,7 +929,7 @@ local function run_lua_func(state, env, upvals)
929
929
pc = pc + nups
930
930
end
931
931
932
- memory [inst .A ] = wrap_lua_func (sub , env , uvlist )
932
+ memory [inst .A ] = lua_wrap_state (sub , env , uvlist )
933
933
else
934
934
--[[ TESTSET]]
935
935
local A = inst .A
@@ -1030,7 +1030,7 @@ local function run_lua_func(state, env, upvals)
1030
1030
end
1031
1031
end
1032
1032
1033
- function wrap_lua_func (proto , env , upval )
1033
+ function lua_wrap_state (proto , env , upval )
1034
1034
local function wrapped (...)
1035
1035
local passed = table.pack (... )
1036
1036
local memory = table .create (proto .max_stack )
@@ -1064,4 +1064,4 @@ function wrap_lua_func(proto, env, upval)
1064
1064
return wrapped
1065
1065
end
1066
1066
1067
- return {stm_lua = stm_lua_bytecode , wrap_lua = wrap_lua_func }
1067
+ return {bc_to_state = lua_bc_to_state , wrap_state = lua_wrap_state }
0 commit comments