Roberto Ierusalimschy
|
28d47a0aaa
all jumps have byte variants; WHILE optimization
|
28 years ago |
Roberto Ierusalimschy
|
a580480b07
new implementation for globals: Global value is stored in TaggedString
|
28 years ago |
Roberto Ierusalimschy
|
0dd6d1080e
new opcode variants.
|
28 years ago |
Roberto Ierusalimschy
|
d6c867ea50
better way to cope with opcode variants
|
28 years ago |
Roberto Ierusalimschy
|
2079cfe8fa
new way to code globals, using const table instead of putting global
|
28 years ago |
Roberto Ierusalimschy
|
dfe03c7abe
small optimizations (bit scrubbing)
|
28 years ago |
Roberto Ierusalimschy
|
8cd67ac676
Syntax analizer and code generator
|
28 years ago |
Roberto Ierusalimschy
|
dd1aa28390
small optimization in opcodes for "and" and "or"
|
28 years ago |
Roberto Ierusalimschy
|
abbf14cd32
small optimizations; try to find previous use when coding a real constant.
|
28 years ago |
Roberto Ierusalimschy
|
0892f0e5b7
BIG CHANGE: functions have their own "constant table".
|
28 years ago |
Roberto Ierusalimschy
|
2c580a0afb
new way to handle global state during compilation.
|
28 years ago |
Roberto Ierusalimschy
|
a38f093f05
luaI_initTFunc initializes fileName.
|
28 years ago |
Roberto Ierusalimschy
|
373363cb69
new name for old "mem.h" (conflicts with some compiler libraries)
|
28 years ago |
Roberto Ierusalimschy
|
b8af9c56c9
new form for constructors: {[exp] = exp, ...}
|
28 years ago |
Roberto Ierusalimschy
|
0b110f7922
small syntax error (yacc does not complain, but bison does).
|
28 years ago |
Roberto Ierusalimschy
|
1143bf9286
better check when converting from float to int, to avoid overflow
|
28 years ago |
Roberto Ierusalimschy
|
f00d692445
small correction to avoid "wrong" default action
|
29 years ago |
Roberto Ierusalimschy
|
a0e9bfbb48
syntax error function is in "lex.c" (it has the token)
|
29 years ago |
Roberto Ierusalimschy
|
0af581f0bf
new way to handle pragmas (at the lexical level, instead of parsing).
|
29 years ago |
Roberto Ierusalimschy
|
7b8166d7b3
a chunk may end with a return.
|
29 years ago |
Roberto Ierusalimschy
|
7614b17e85
very small corrections
|
29 years ago |
Roberto Ierusalimschy
|
9863223fbf
first version of vararg facility (plus new function "call").
|
29 years ago |
Roberto Ierusalimschy
|
9284742a11
better control when growing arrays.
|
29 years ago |
Roberto Ierusalimschy
|
621322a305
"PrintCode" now is defined in luac.
|
29 years ago |
Roberto Ierusalimschy
|
d6e4c29733
fixed strings (not collectable) don't need to be inserted in the constant table.
|
29 years ago |
Roberto Ierusalimschy
|
f935d3397e
check if jump is bigger than 2^16.
|
29 years ago |
Roberto Ierusalimschy
|
45cf24485d
useless #include.
|
29 years ago |
Roberto Ierusalimschy
|
0f4903a5d7
new header "lex.h".
|
29 years ago |
Roberto Ierusalimschy
|
41259bff31
BIG CHANGE: new data structure for constants, strings and globals, using
|
29 years ago |
Roberto Ierusalimschy
|
5a3a1fe458
debug interface functions to manipulated local variables:
|
29 years ago |