Commit Graph

1108 Commits

Author SHA1 Message Date
James Roseborough
549c35aa59 Make compile for j2me 2007-11-15 01:31:50 +00:00
James Roseborough
abad119a5c Introduce LuaErrorException which is thrown and caught when a lua error() needs to be processed. 2007-11-15 00:49:02 +00:00
James Roseborough
7e22487624 Bullet-proof dynamic stack size 2007-11-14 17:52:39 +00:00
James Roseborough
1726350d93 Fix getmetatable 2007-11-14 17:51:51 +00:00
Shu Lei
7ddfb80116 1. updated DebugSupport to use one port for two-way communication
2. added a command line debug option to pause the VM on start
3. minor code clean up - replaced tabs with 4 white spaces
2007-11-12 22:08:26 +00:00
James Roseborough
a68fcb6743 Make compiler optional 2007-11-09 22:59:19 +00:00
James Roseborough
2023ac3464 Split libraries into pieces. 2007-11-09 00:15:56 +00:00
Shu Lei
4acaa11845 added some java doc and clean the code formatting 2007-11-08 19:09:40 +00:00
Shu Lei
af51bf6f07 renamed DebugStackState to DebugLuaState 2007-11-08 01:59:42 +00:00
Shu Lei
25c008dab6 re-apply my last two check-ins before the code structure refactoring:
(1) added getGlobals to returns the globals for Globals view in Eclipse
(2) fixed the scoping issue with stack state
(3) renamed DebugResponseStack to DebugResponseVariables
2007-11-08 01:55:27 +00:00
James Roseborough
ff66779330 Major refactoring of package names, class names 2007-11-07 23:56:06 +00:00
Shu Lei
2281d056ec fix the scoping problem: variables in an outer scope were not included in the stack 2007-11-07 20:11:55 +00:00
Shu Lei
3bf2fc2958 1. renamed DebugResponseStack to DebugResponseVariables
2. added getGlobal to DebugStackState for supporting the Globals view
3. converted tabs to 4 whitespaces in some files
2007-11-07 19:33:06 +00:00
James Roseborough
d6a3525357 Fix return value of table.remove() 2007-11-06 23:33:11 +00:00
James Roseborough
f398387222 Up version to 0.9 2007-11-06 22:17:24 +00:00
James Roseborough
0ff616579f change version to 0.8 2007-11-06 21:54:16 +00:00
Shu Lei
439f14c267 1. refactored getCurrentPc() to retrieve the current pc for the stack frame
2. reverted the code to aggregate all visible variables. due to the lack of debugging info about the lexical scope, only local visible variables are returned for now.
2007-11-06 01:29:57 +00:00
James Roseborough
d0bd5c9ff8 Remove deprecated API's 2007-11-05 22:30:48 +00:00
Shu Lei
e785b88f30 fix the bug that the current line number for the calling frame is off by one 2007-11-05 19:55:29 +00:00
James Roseborough
484a758b3c Fix top handling for table module 2007-11-05 19:42:31 +00:00
James Roseborough
ec5068a96e Fix select for "#" argument 2007-11-05 19:16:08 +00:00
James Roseborough
cce33612ce replace deprecated API's. 2007-11-05 19:12:01 +00:00
James Roseborough
c93301506a Replace deprecated API's 2007-11-05 17:19:46 +00:00
Shu Lei
dda1af0570 updated the top for FORLOOP so that the loop index shows up when the first time stepped into the loop 2007-11-02 03:03:10 +00:00
Shu Lei
7e99ae8ac1 1. fixed a bug with not remembering the calling stack's top and reverted the previous change in method printState file Print.java to check on the upper bound
2. fixed a NPE in DebugStackState when an error is raised and debugSupport is null
3. made the DebugStackState not to pause on start by default
2007-11-02 02:33:59 +00:00
James Roseborough
100b6a6162 Remove superfluous import 2007-11-01 16:44:04 +00:00
James Roseborough
434530b60f Table unit tests and implementation of table.remove(), table.sort() 2007-10-31 23:24:51 +00:00
James Roseborough
facb8d1d07 Unit test for table package functions 2007-10-31 19:03:18 +00:00
Shu Lei
1ebbabc9d6 1. improved stack state (correct scoping)
2. fixed the problem with debugger not pausing on first line
2007-10-30 01:37:26 +00:00
Shu Lei
3aeb6fc290 resurrect the dead files 2007-10-27 07:31:49 +00:00
Shu Lei
abf34c460d redo the error handling due to the changes in DebugStackState made by James 2007-10-25 00:11:23 +00:00
James Roseborough
72c01f76c0 Allow dump state to take arguments for endian-ness, force to integer 2007-10-24 23:43:21 +00:00
Shu Lei
e97b842b45 1. added stepping debug support
2. added debugger error handling
2007-10-24 20:21:16 +00:00
James Roseborough
b86e06ab1c Coroutine implementation based on Java Threads. 2007-10-23 21:24:49 +00:00
Ian Farmer
c311c31a74 Fix inconsistency in build: filename in real-delete target was not the
same as filename produced.
2007-10-23 21:09:54 +00:00
Ian Farmer
c3f17a3b5e Build changes:
* ant build.xml produces 4 output jars: all-in-one jar, a "core" jar that
  should work under J2ME, an "extras" jar with classes that require J2SE,
  and the last jar provides the debug support for J2ME.
* Change the Eclipse .classpath to include WTK jars. Requires WTK_HOME
  classpath variable be set in Eclipse workspace.
2007-10-23 21:06:51 +00:00
James Roseborough
504020beda Fix coroutine.wrap() error propogation. 2007-10-23 00:49:52 +00:00
James Roseborough
932960c846 Add tests for pcall, add error() builtin, fix assert(), error levels. 2007-10-23 00:34:04 +00:00
James Roseborough
8248cca2bf implement corouting.wrap(), fix bugs in coroutine.status(), fix StackState.insert() 2007-10-22 21:05:04 +00:00
James Roseborough
78eaaf0fa0 Initial draft of coroutines library. 2007-10-20 00:51:15 +00:00
James Roseborough
8e2ff119f9 Add LValue.toJavaX and VM.pushboxedx() functions for all java basic type conversions 2007-10-18 17:47:01 +00:00
James Roseborough
ccde158514 Fix insert, add LDouble.valueOf() 2007-10-17 17:47:53 +00:00
Shu Lei
a8422a6908 debug support refactoring 2007-10-17 00:56:08 +00:00
Shu Lei
70442348a1 some more refactoring 2007-10-12 23:39:27 +00:00
Shu Lei
38dafdb190 1. some refacotring
2. fixed a few files so that they will compile for j2me
2007-10-12 20:39:26 +00:00
Shu Lei
3138fdee65 refactoring - create new packages: lua.debug.event, lua.debug.request and lua.debug.response 2007-10-12 01:42:42 +00:00
Shu Lei
341a5588b0 first step to bring debugging code to j2me 2007-10-12 01:36:28 +00:00
James Roseborough
6970b30c7a Add math.ceil, math.floor 2007-10-11 03:54:40 +00:00
James Roseborough
5a92c52fd5 Add "j2me" ant target. 2007-10-10 17:53:34 +00:00
James Roseborough
6897febc0a Remove dependence on Arrays.binarySearch 2007-10-10 14:35:35 +00:00