Roberto Ierusalimschy
|
51280ef2ad
call hooks for Lua functions called by 'luaV_execute'
|
před 7 roky |
Roberto Ierusalimschy
|
dc0ab1e8ca
warnings in VS (implicit casts from ptrdiff_t to int)
|
před 7 roky |
Roberto Ierusalimschy
|
89110986d7
bug in tailcall of vararg functions
|
před 7 roky |
Roberto Ierusalimschy
|
53979dfe0d
calling a vararg function needs to check GC
|
před 7 roky |
Roberto Ierusalimschy
|
ab0a851db4
'luaD_tryfuncTM' can ensure it does not change the stack
|
před 7 roky |
Roberto Ierusalimschy
|
28323aeaa6
by-one error when filling missing arguments in a tail call
|
před 7 roky |
Roberto Ierusalimschy
|
8691612f01
when calling a hook, cannot decrease 'ci->top' (to preserve stack
|
před 7 roky |
Roberto Ierusalimschy
|
1d5b885437
when running Lua code, there is no need to keep 'L->top' "correct";
|
před 7 roky |
Roberto Ierusalimschy
|
4dc0be950a
new macro 'isLuacode' (to distinguish regular Lua code from
|
před 7 roky |
Roberto Ierusalimschy
|
b3f924bc69
'Proto->numparams' does not include vararg parameter
|
před 7 roky |
Roberto Ierusalimschy
|
725c15a4ca
when shrinking stack, always shrinks the CI list.
|
před 7 roky |
Roberto Ierusalimschy
|
bfb88e99e9
'luaD_growstack' cannot raise any errors when 'raiseerror' is
|
před 7 roky |
Roberto Ierusalimschy
|
e663a24ab0
more freedom in handling memory-allocation errors (not all allocations
|
před 7 roky |
Roberto Ierusalimschy
|
e0bece77d6
detail
|
před 7 roky |
Roberto Ierusalimschy
|
c766e4103d
'luaV_execute' gets call info as extra argument (it is always
|
před 7 roky |
Roberto Ierusalimschy
|
194a4f9710
small simplifications in 'luaD_poscall'
|
před 7 roky |
Roberto Ierusalimschy
|
196c87c9ce
no more 'stackless' implementation; 'luaV_execute' calls itself
|
před 7 roky |
Roberto Ierusalimschy
|
14c3aa12b5
more direct implementation for tail calls.
|
před 7 roky |
Roberto Ierusalimschy
|
5440b42f43
using 'trap' to stop 'luaV_execute' when necessary (tracing and
|
před 7 roky |
Roberto Ierusalimschy
|
7d4828cc9f
avoid accessing wrong union field
|
před 7 roky |
Roberto Ierusalimschy
|
ad0704e40c
back to 'CallInfo' (no gains with its removal)
|
před 7 roky |
Roberto Ierusalimschy
|
93fd67b793
no more 'CallInfo' structure
|
před 7 roky |
Roberto Ierusalimschy
|
6bb3e40a8d
'lua_Debug' not using 'CallInfo'
|
před 7 roky |
Roberto Ierusalimschy
|
472c560705
no more useful fields in CallInfo
|
před 7 roky |
Roberto Ierusalimschy
|
54eb35a8aa
more fields moved out of 'CallInfo'
|
před 7 roky |
Roberto Ierusalimschy
|
ba36180fd7
new API for 'lua_resume' + cleaning the uses of the 'extra' field in
|
před 7 roky |
Roberto Ierusalimschy
|
b9e76be8a6
using 'L->func' when possible
|
před 7 roky |
Roberto Ierusalimschy
|
c5482468fd
baby steps to remove 'CallInfo': keeping 'L->func' correct
|
před 7 roky |
Roberto Ierusalimschy
|
6d998055c8
no more reference 'memerrmsg' + new reference to "n"
|
před 8 roky |
Roberto Ierusalimschy
|
f96497397a
new type 'StackValue' for stack elements
|
před 8 roky |