Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
Sync to 0.580
Browse files Browse the repository at this point in the history
  • Loading branch information
RadiatedExodus committed Jun 12, 2023
1 parent 60f5253 commit 9668f6a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion luau
Submodule luau updated from 63679f to 3ecd3a
20 changes: 10 additions & 10 deletions snippets/ExtraCodeSnippet.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
local NamedFunctionList = {
--// Luau
["luau_compile"] = FUNC_LIST[756];
["luaL_newstate"] = FUNC_LIST[1086];
["luaL_openlibs"] = FUNC_LIST[1083];
["lua_close"] = FUNC_LIST[1153];
["luaL_sandbox"] = FUNC_LIST[1085];
["luaL_newstate"] = FUNC_LIST[1085];
["luaL_openlibs"] = FUNC_LIST[1082];
["lua_close"] = FUNC_LIST[1152];
["luaL_sandbox"] = FUNC_LIST[1083];
["lua_tolstring"] = FUNC_LIST[787];
["luaL_pushresult"] = FUNC_LIST[891];

--// Standard Library
["dlmalloc"] = FUNC_LIST[3450];
["dlfree"] = FUNC_LIST[3451];
["strlen"] = FUNC_LIST[3196];
["dlmalloc"] = FUNC_LIST[3449];
["dlfree"] = FUNC_LIST[3450];
["strlen"] = FUNC_LIST[3195];

--// WebAssembly
["__wasm_call_ctors"] = FUNC_LIST[350];
Expand Down Expand Up @@ -58,7 +58,7 @@ FUNC_LIST[348] = CreateStub(0) --// fd_pwrite
FUNC_LIST[349] = CreateStub(0) --// __syscall_truncate64
FUNC_LIST[346] = CreateStub(0) --// __syscall_fallocate
FUNC_LIST[298] = CreateStub(0) --// fd_sync
FUNC_LIST[302] = CreateStub(0) --// fs_fdstat_get
FUNC_LIST[302] = CreateStub(0) --// fd_fdstat_get
FUNC_LIST[260] = CreateStub(0) --// environ_sizes_get
FUNC_LIST[261] = CreateStub(0) --// environ_get
FUNC_LIST[266] = CreateStub(0) --// fd_close
Expand Down Expand Up @@ -237,9 +237,9 @@ local function LuauRunBytecode(bytecode: string, safeenv: boolean?)
return ResultCodeToBoolean(Result)
end

local function CreateClosureFromSource(src: string, safeenv: boolean?)
local function CreateClosureFromSource(src: string, safeenv: boolean?, optimizationlevel: number?, debuglevel: number?)
return function()
LuauRun(src, safeenv)
LuauRun(src, safeenv, optimizationlevel, debuglevel)
return
end
end
Expand Down

0 comments on commit 9668f6a

Please sign in to comment.