576cf2068d
Special processing on for loop upvalues.
James Roseborough
2010-04-14 05:36:43 +00:00
8ae33e1d08
Refactor java code generator.
James Roseborough
2010-04-13 14:31:40 +00:00
a8f129b8cf
Add string cache to pool most commonly used Java strings
James Roseborough
2010-04-06 04:55:57 +00:00
8e34f8bf27
Implement tail call optimization to avoid stack overflow.
Ian Farmer
2010-04-06 04:03:06 +00:00
aed25279eb
Improve luajava method resolution
James Roseborough
2010-04-06 04:00:52 +00:00
0d18988a96
Add test for luajava, compiler, and compatibility witn luavm 1.0
James Roseborough
2010-04-03 15:14:30 +00:00
a548ef27fb
Add luajava exceptino handling, array and unit test logic from 1.0 branch
James Roseborough
2010-04-03 05:31:53 +00:00
46a9527701
Add LuaValue.load() function for library initialization. Change unit tests to use JavaBytecodeCompiler for lua->Java conversion.
James Roseborough
2010-04-03 03:48:53 +00:00
d903a85578
Fix error behavior.
James Roseborough
2010-04-02 14:48:01 +00:00
946503fc20
Refactor library initialization code.
James Roseborough
2010-04-02 05:57:54 +00:00
3a880788cc
Add symbolic names for opcodes
James Roseborough
2010-04-01 14:20:21 +00:00
64751f694e
Convert most libraries to use standard loading.
James Roseborough
2010-04-01 05:35:54 +00:00
68fbf6cc39
Update version to 2.0-alpha1
James Roseborough
2010-03-31 04:49:01 +00:00
dc0be9b15a
Add doc for bytecode generator.
James Roseborough
2010-03-31 04:15:09 +00:00
200d80b4b8
Fix build path
James Roseborough
2010-02-05 04:31:51 +00:00
a2c566bb58
Builder for sample midlet
James Roseborough
2009-11-11 00:45:09 +00:00
0a0564563e
Allow debug lib to be removed by obfuscators.
James Roseborough
2009-11-10 17:28:24 +00:00
699bcb2e48
Retain extension in source file name.
James Roseborough
2009-11-10 17:22:51 +00:00
b45bc98b37
Simplify and fix upvalue implementation.
James Roseborough
2009-11-09 15:16:38 +00:00
7cc18046ab
Fix upvalue processing.
James Roseborough
2009-11-04 06:33:34 +00:00
1b66a91c95
Let VarArgFunction instances register with Thread on invocation.
James Roseborough
2009-11-03 19:12:48 +00:00
3906ab0711
Expose class name normalization.
James Roseborough
2009-11-03 18:06:03 +00:00
0aa2563cc6
Add noop on OP_CLOSE instruction for branching.
James Roseborough
2009-11-03 02:23:49 +00:00
3d4a29f1bc
Fixes to class generation logic.
James Roseborough
2009-11-03 02:13:45 +00:00
ac91de7794
Add options to load to prototype
James Roseborough
2009-11-03 01:16:46 +00:00
c78d789cdc
Improve bytcode generation.
James Roseborough
2009-11-02 05:38:36 +00:00
05e6fa5774
Add arg table to globals when executing from command line.
James Roseborough
2009-10-31 05:41:35 +00:00
97e6da241b
Let compilers compile from prototypes, fix loading of code without debug info.
James Roseborough
2009-10-31 00:37:22 +00:00
4a2b2d7191
V 1.9.52
James Roseborough
2009-10-30 23:05:48 +00:00
5d14dfcbe9
Fix off-by-one error.
James Roseborough
2009-10-30 23:05:03 +00:00
674ae6195e
Make class names java-friendly
James Roseborough
2009-10-30 23:04:37 +00:00
17c86b8eb3
Let ant build download bcel jar as needed.
James Roseborough
2009-10-30 21:57:35 +00:00
3e3909b14b
Fix vararg parameter handling, self and setlist bytecode processing.
James Roseborough
2009-10-30 19:24:43 +00:00
668692d0a2
Add debug library by default.
James Roseborough
2009-10-30 19:23:25 +00:00
933a4fcc36
Replace upvalue holder when upvalues are closed.
James Roseborough
2009-10-30 05:27:36 +00:00
f18134bf74
Make soem methods final, let loadsting use "string" for chunk name
James Roseborough
2009-10-30 01:10:15 +00:00
dd82fe6d2d
Fix source and class names in generated bytecode.
James Roseborough
2009-10-30 00:39:25 +00:00
0b6cd02bc6
Add bytecode count based debug hooks.
James Roseborough
2009-10-27 13:41:30 +00:00
d1debdf2ec
Remove obsolete v 1.0 source files (still available in 1.0 branch).
James Roseborough
2009-10-27 06:20:40 +00:00
3863ff8e46
Initial sources for planned 2.0 luaj vm release. Most interpreter features and library functions working.
James Roseborough
2009-10-27 06:12:24 +00:00
d16fad00e8
Version property to 1.0.2
James Roseborough
2009-10-27 03:37:33 +00:00
ac0e6b73db
Update README to include array support note.
James Roseborough
2009-10-27 03:34:35 +00:00
ebb5c84b74
Get instance data directly from the stack.
James Roseborough
2009-10-24 03:36:51 +00:00
3c2413a88a
Let shared metatable for array access work on multiple instances.
James Roseborough
2009-10-24 03:29:52 +00:00
9d22ef7855
Additional support for arrays in luajava library.
James Roseborough
2009-10-22 06:08:33 +00:00
66873ff268
Improve debug hooks to match C behavior more closely.
James Roseborough
2009-09-10 00:13:40 +00:00
9cad7f1001
Fix gethook() return values and sethook() behavior when called from hook function.
James Roseborough
2009-09-06 14:49:45 +00:00
1c5e2352f9
Add coroutine and vararg tests.
James Roseborough
2009-08-26 14:26:55 +00:00
263960df3f
Simplify debug info for java functions
James Roseborough
2009-08-25 21:33:58 +00:00
b698d500ba
Fix arg check and behavior of xpcall() to leave stack intact.
James Roseborough
2009-08-25 20:46:07 +00:00
92459d0cbc
Fix library path info
James Roseborough
2009-06-20 14:18:12 +00:00
120a3cf912
Replace ${VER} with 1.0
James Roseborough
2009-06-20 13:47:05 +00:00
02826a1562
Set version to 1.0
James Roseborough
2009-06-20 13:38:12 +00:00
13050a68b8
Begin work on 0.98
James Roseborough
2009-05-22 18:34:06 +00:00
623db25250
Fix hash code for doubles, add unit test to compare with integer hash codes.
James Roseborough
2009-05-22 16:41:28 +00:00
c4b2ab86f7
Coerce doubles into integers wherever possible, use hash code for doubles that is compatible with integers.
James Roseborough
2009-05-22 14:51:42 +00:00
a55ddfa2d9
Add "arg" global value to provide command line arguments.
James Roseborough
2009-05-05 00:29:20 +00:00
5048824909
Remove extra import.
James Roseborough
2009-05-05 00:28:42 +00:00
6a1fdfb6b0
fix varargs processing when followed by function call (test9.lua)
James Roseborough
2009-04-27 22:43:45 +00:00
d6cbf423a3
Bug fix: string.find() was ignoring its 4th argument.
Ian Farmer
2009-04-27 22:42:50 +00:00
fbaeec9fe7
Add 2 new test cases.
Ian Farmer
2009-04-27 20:16:06 +00:00
363ea0dfb1
Fix bytecode processing for OP_SELF and OP_TESTSET
James Roseborough
2009-04-25 00:23:19 +00:00
ddf2ed6f71
Add download links to documentation.
James Roseborough
2009-04-23 04:57:47 +00:00
a5ac11d34b
Up version to 0.95
James Roseborough
2009-04-21 15:59:15 +00:00
beef2f99a0
Tune LString.equals() and related functions.
James Roseborough
2009-04-18 18:34:28 +00:00
0d0236819d
Additional guards in debug info.
James Roseborough
2009-04-11 00:16:40 +00:00
a159a50cee
Save and restore call counter for calls, since they may fail and leave elements on the stack when an Exception is thrown.
James Roseborough
2009-04-10 00:35:23 +00:00
4d4df03dbf
Simplify configuration of simple hook functions.
James Roseborough
2009-04-09 22:50:26 +00:00
67c66c684c
expose public getlocal and getupvalue functions.
James Roseborough
2009-04-09 20:20:14 +00:00
f66c456934
expose public traceback function.
James Roseborough
2009-04-09 18:49:10 +00:00
f42bbd1ff7
improve error reporting.
James Roseborough
2009-04-09 18:19:07 +00:00
93977b293f
Improve error reporting.
James Roseborough
2009-04-09 17:31:45 +00:00
99d5baeeab
try to load lua before Java classes for -l argument.
James Roseborough
2009-04-09 17:31:06 +00:00
1d40b52348
Let all libraries implement invoke() instead of luaStackCall, correct off-by-one error on argument type check functions.
James Roseborough
2009-04-09 16:27:01 +00:00
a414314114
Add oslib tests.
James Roseborough
2009-04-09 16:25:12 +00:00
71f539ab2d
Improve handling of tail calls in debug info
James Roseborough
2009-04-08 14:40:52 +00:00
a91cd3dfee
Move source file name accessor methods.
James Roseborough
2009-04-08 00:15:14 +00:00
85db250622
Fixes to getinfo when function is supplied.
James Roseborough
2009-04-08 00:09:46 +00:00
250fde7859
Improve debug library getinfo, traceback, getupvalue, and getlocal functions.
James Roseborough
2009-04-07 23:45:29 +00:00
f51fac919e
Relocate some debug-related methods.
James Roseborough
2009-04-05 17:34:48 +00:00
e9847bb70d
Improve call hooks, stack trace and getinfo reporting.
James Roseborough
2009-04-04 22:00:37 +00:00
7d3d4d9f01
Update version to 0.94
James Roseborough
2009-04-03 16:32:06 +00:00
cd43f00d91
Add static install utility for j2se os lib.
James Roseborough
2009-04-03 05:44:57 +00:00
4039127936
Add basic os library implementation.
James Roseborough
2009-04-03 05:42:45 +00:00
37b759485b
Update README to include documentation on debug library.
James Roseborough
2009-04-02 14:52:18 +00:00
498805bfe5
Repair subclass hook for debugging.
James Roseborough
2009-04-02 13:50:11 +00:00
bb8ced423e
Let getinfo return without error when level extends beyond call stack
James Roseborough
2009-04-02 13:45:51 +00:00
d236c31650
Fixes to debug.sethook, debug.gethook, and debug.getinfo functions.
James Roseborough
2009-03-26 05:13:06 +00:00
512304475e
Tests and fixes for debug.setupvalue, getupvalue, setmetatable, and getmetatable
James Roseborough
2009-03-25 21:35:20 +00:00
1aa3a7561f
Fix debug.getlocal, debug.setlocal to match C lua logic.
James Roseborough
2009-03-25 18:28:30 +00:00