James Roseborough
9dee79cb80
Make LInteger constructor private and use LInteger.valueOf() everywhere, caching common values.
2007-10-04 17:37:15 +00:00
Shu Lei
421eface40
added debugging support and integrated with Eclipse debugger
2007-10-03 17:39:37 +00:00
James Roseborough
9f6d7543cd
Remove compiler dependence on mark()/reset()
2007-09-22 16:57:25 +00:00
James Roseborough
90cc227e34
Add compiler by default.
2007-09-22 00:25:36 +00:00
James Roseborough
32e1fedba5
Improve error handling, introduce lua stack trace processing.
2007-09-18 22:55:22 +00:00
Ian Farmer
aeafca11b6
Change LString to use an array of bytes instead of wrapping Java's String.
...
This brings our implementation more in line with regular C Lua.
2007-09-10 06:27:54 +00:00
James Roseborough
8bf4c82a12
Rework the main API"s that implement the calling convention. Provide utility methods to get arguments that were supplied, and provide return values. Add a VM interface to clarify the relationship between the VM, things that call the VM, and things that are called by the VM. Make the code more closely aligned with the C++ version.
2007-07-24 05:06:10 +00:00
Ian Farmer
62022d5881
While loading chunks, check if double values can be represented as integers,
...
and load them as LIntegers instead of LDoubles if so. Also change test2 so that
it does not fail because of the rounding problem. With these changes, 4 out of
7 test cases in LuaJTest now pass.
2007-07-09 01:31:31 +00:00
James Roseborough
c8e1934916
Refactor call stack and its use throughout. CallFrame now does all bytecode processing, and the callframe is reinitialized anytime something might have changed, like a function call.
2007-06-27 06:43:33 +00:00
James Roseborough
70dfc20f57
Initial draft of interpreter. Lua compiled "chunks" can be unmarshalled. Approximately half of bytecodes implemented in some form or another.
2007-06-08 05:11:37 +00:00