Mike Pall
f9421f2b9f
Replace string.len with bytecode builtin.
2013-04-26 18:40:39 +02:00
Mike Pall
b6adfff8f4
Compile string.reverse(), string.lower(), string.upper().
2013-04-26 00:32:08 +02:00
Mike Pall
61cb25b0ca
Refactor string.reverse(), string.lower(), string.upper().
2013-04-26 00:31:10 +02:00
Mike Pall
39e53e8c4c
Compile string.char().
2013-04-23 12:40:07 +02:00
Mike Pall
59329cfbbf
Optimize and refactor printing of numbers to buffers.
2013-03-25 16:41:13 +01:00
Mike Pall
f1dbd65c0e
Use string buffer for string.format().
2013-03-21 22:17:59 +01:00
Mike Pall
fecde1b222
Use string buffer for string.dump().
2013-03-20 16:56:09 +01:00
Mike Pall
d1645c88a1
Clean up TValue to buffer conversions.
2013-03-18 17:08:37 +01:00
Mike Pall
116cdd7e9a
String buffer refactoring, part 2.
...
Switch to pointers for start/pos/end of buffer.
Abstract out some buffer writers.
2013-02-27 21:28:28 +01:00
Mike Pall
28cfcf7744
String buffer refactoring, part 1.
...
Move string buffer handling to lj_buf.*.
Use common buffer resizing function.
2013-02-27 17:29:35 +01:00
Mike Pall
4a44c4ff69
Bump copyright date to 2013.
2013-02-11 12:54:48 +01:00
Mike Pall
2f5ed5d0df
From Lua 5.2: Add string.rep(s, n, sep).
2012-10-07 17:11:39 +02:00
Mike Pall
faf05c3a13
From Lua 5.2: '%s' option to string.format() behaves like tostring().
2012-10-02 11:59:32 +02:00
Mike Pall
0d7094f36e
From Lua 5.2: Return nil for bad position in string.find().
...
Needs -DLUAJIT_ENABLE_LUA52COMPAT.
2012-10-02 11:56:33 +02:00
Mike Pall
2d3c1967c7
Disable LUA_COMPAT_GFIND and LUA_COMPAT_MOD in Lua 5.2 mode.
2012-09-19 18:14:00 +02:00
Mike Pall
ff00a78f3a
Limit recursion depth in string.match() et al.
2012-08-28 21:22:23 +02:00
Mike Pall
c0efa6f00e
Replace divisions with simpler code.
2012-08-26 19:41:35 +02:00
Mike Pall
653facd0d5
Add support for '%a' and '%A' to string.format.
2012-08-25 22:46:22 +02:00
Mike Pall
10ef109eef
Bump copyright date to 2012.
2012-01-23 22:42:42 +01:00
Mike Pall
4994fcc32c
Add support for bytecode loading/saving.
2011-06-13 01:04:11 +02:00
Mike Pall
27d8d3b5d9
Fix check for missing arguments in string.format().
2011-06-10 13:47:11 +02:00
Mike Pall
cead25f928
DUALNUM: Handle integer type in x86/x64 interpreter and libraries.
2011-02-27 01:36:59 +01:00
Mike Pall
03946ac978
DUALNUM: Add integer type to core VM.
2011-02-17 00:44:14 +01:00
Mike Pall
2c8945d3e7
Use names defined in lualib.h for library registration.
2011-02-02 02:38:59 +01:00
Mike Pall
06f99fc3df
Bump copyright date to 2011.
2011-01-09 17:12:53 +01:00
Mike Pall
52fd87bf34
Add support for "%g" character class in patterns (from Lua 5.2).
2010-11-19 18:37:10 +01:00
Mike Pall
7cc981c140
string.format("%q", str) is now fully reversible (from Lua 5.2).
2010-11-19 18:22:08 +01:00
Mike Pall
ad29c1f39f
Rename character type handling from lj_ctype* to lj_char*.
2010-11-09 12:09:54 +01:00
Mike Pall
06ae534328
Fix string.format() for non-finite numbers.
2010-08-24 23:06:10 +02:00
Mike Pall
55017d4626
Fix formatting of canonicalized number to string conversions.
2010-08-23 20:06:36 +02:00
Mike Pall
926f688cd0
Canonicalize string conversion of nan, inf, -inf.
2010-05-20 00:40:51 +02:00
Mike Pall
ef0904e80b
Make metamethod names proper GC roots.
2010-04-25 18:35:47 +02:00
Mike Pall
c93138b59e
Major redesign of function call handling.
...
Drop call gates. Use function headers, dispatched like bytecodes.
Emit BC_FUNCF/BC_FUNCV bytecode at PC 0 for all Lua functions.
C functions and ASM fast functions get extra bytecodes.
Modify internal calling convention: new base in BASE (formerly in RA).
Can now use better C function wrapper semantics (dynamic on/off).
Prerequisite for call hooks with zero-overhead if disabled.
Prerequisite for compiling recursive calls.
Prerequisite for efficient 32/64 bit prototype guards.
2010-02-13 04:51:56 +01:00
Mike Pall
4d9be5b8f8
Bump all copyright dates to 2010.
2010-01-09 14:28:11 +01:00
Mike Pall
3f1f9e11f4
Fast forward to sync public repo.
...
Compile math.sinh(), math.cosh(), math.tanh() and math.random().
Compile various io.*() functions.
Drive the GC forward on string allocations in the parser.
Improve KNUM fuse vs. load heuristics.
Add abstract C call handling to IR.
2009-12-08 20:35:29 +01:00
Mike Pall
1d1fed48a0
RELEASE LuaJIT-2.0.0-beta2
2009-12-08 19:49:20 +01:00
Mike Pall
55b1695971
RELEASE LuaJIT-2.0.0-beta1
2009-12-08 19:46:35 +01:00