Roberto Ierusalimschy
|
465b474899
small reorganization of 'luaV_flttointeger'/'luaV_tointeger'
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
1afd5a152d
more generic way to handle 'gclist'
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
49dae52d08
correct way to check stack space for vararg functions
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
0682fe8169
some simplifications/optimizations in returns from Lua functions
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
b1379936cf
vararg back to '...' (but with another implementation)
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
318a9a5859
new opcode 'PREPVARARG'
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
51280ef2ad
call hooks for Lua functions called by 'luaV_execute'
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
dc0ab1e8ca
warnings in VS (implicit casts from ptrdiff_t to int)
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
5bd8d388de
OP_CONCAT does not move its result (to simplify its execution)
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
d2fb34ac88
'OP_TAILCALL' calling C functions finishes the call and returns
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
ab0a851db4
'luaD_tryfuncTM' can ensure it does not change the stack
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
ad960095bf
avoid jumping into a variable scope (C++ does not allow that)
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
a9295a2b8e
typos in comments
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
cf7eff45f3
keep control of stack top in Lua functions concentrated in 'luaV_execute'
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
4676f6599e
new macros 'isOT'/'isIT'
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
1d5b885437
when running Lua code, there is no need to keep 'L->top' "correct";
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
3153a41e33
no need to save 'pc' in case of allocation errors
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
d388c165ef
new opcodes 'FORLOOP1'/'FORPREP1' for "basic for" (integer variable
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
86431a2f1c
new opcodes BANDK/BORK/BXORK. (They do not use immediate operands
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
c7ee7fe026
new opcodes OP_SHLI/OP_SHRI
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
10b8c99bbb
small peephole optimizations
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
745eb41993
new opcodes OP_RETURN0/OP_RETURN1
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
c766e4103d
'luaV_execute' gets call info as extra argument (it is always
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
1a5e8c1014
conditional jumps unified in label "condjump' + new variable 'vra'
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
ff5fe51044
using register 'k' for conditions in tests (we only need one bit there)
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
093c16b67b
new opcodes 'OP_LTI' and 'OP_LEI'
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
73abfde2ef
small simplifications around 'luaT_callorderTM'
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
196c87c9ce
no more 'stackless' implementation; 'luaV_execute' calls itself
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
3c230cc825
using 'A' for register instead of 'B' in relational opcodes
|
7 gadi atpakaļ |
Roberto Ierusalimschy
|
41f2936d8f
new opcode 'OP_EQI' for equality with immediate numbers
|
7 gadi atpakaļ |