swadical

Results 28 comments of swadical

```lua function Print(...) return PrintTable {...} end ``` :v

anytime, fam. I think we've half implemented SSA IR through phantom registers (they can only be created once, and right now are only assigned to once) and temporary virtual registers...

_Copy+pasted from discord_ locals/registers be translated with these rules: assume (blocks B1 -> B2 -> B3 -> B4 -> B5) 1. if a local is declared in a sub block...

say example: ```lua do -- block1 do (result i32) -- block2 i32.load 1 setvar var1 loadvar var1 call print i32.load 2 setvar var2 end loadvar var2 call print end ```...

and with the same rules: ```lua do -- block1 do -- block2 -- other code here do -- block3 do -- block4 i32.load 1 setvar v1 loadvar v1 call print...

increment `currentBlockState.currentDeclarations` or `funcState.currentDeclarations` (whichever exists first) every time something is declared ```lua if (sum(currentDeclarations in funcState.blocks) + funcState.currentDeclarations) >= 199 { if(!funcState.useTableVariables) { funcState.useTableVariables = true; funcState.tableVariableIdx = 1;...

It's been a while since I've last worked on this but if memory serves right, gotos were used because there is a limit to how far a lua vm can...

I may not be able to debug this myself, but could I ask a favour? Could you attach the .wasm file that you used to generate this error? If you...

These ones should be inlined to assist the LuaJIT tracer ```lua __FUNCS__.sinf = math.sin __FUNCS__.asinf = math.asin __FUNCS__.cosf = math.cos __FUNCS__.acosf = math.acos __FUNCS__.atanf = math.atan __FUNCS__.atan2f = math.atan2 __FUNCS__.sqrtf...

```lua function __FUNCS__.memset(dest, byte, len) local fastLen = bit.band(len,-4) -- bit.bnot(3) local fwByte = bit.bor( byte, bit.lshift(byte,4), bit.lshift(byte,8), bit.lshift(byte,12) ) for i=0,fastLen-1,4 do __MEMORY_WRITE_32__(mem_0,dest+i,fwByte) end for i=(len-fastLen),len-1,1 do __MEMORY_WRITE_8__(mem_0,dest+i,byte) end...