Commit Graph

1066 Commits

Author SHA1 Message Date
James Roseborough
8c451be87f Set function name to name of file when loaded from compiled code. 2008-04-30 00:11:46 +00:00
James Roseborough
b79f8ba714 Initial pass at JSR 223 pluggable scripting engne. 2008-04-24 08:22:34 +00:00
James Roseborough
2e17f19628 Up initial buffer size to 512 2008-04-24 00:52:38 +00:00
James Roseborough
2454606c41 Denormalize opcode fetching for performance. 2008-04-23 23:55:05 +00:00
James Roseborough
b6cc568c6c Refactor LoadState to improve loading speed. 2008-04-23 20:05:12 +00:00
James Roseborough
d2fe6ccc52 Let suspend argument accept True as true 2008-04-23 18:31:25 +00:00
James Roseborough
53fa0d1ca0 Remove name passing into UpVal instances. 2008-04-23 17:34:04 +00:00
James Roseborough
06e4efd93c Make code friendlier to jdk 1.4 compiler. 2008-04-22 17:34:54 +00:00
James Roseborough
7ecd04a652 Improve Java table length computation relative to C version 2008-04-22 05:30:00 +00:00
James Roseborough
497f3d8100 add tests for length 2008-04-22 05:22:34 +00:00
James Roseborough
bba4cf9a99 Reconcile C & Java typechecking on table.concat() and string .. concat operator 2008-04-22 04:52:24 +00:00
James Roseborough
3c3b43bcfd Bump version number. 2008-04-21 16:43:31 +00:00
James Roseborough
ecf56c157c extend vm test 2008-04-18 18:26:25 +00:00
James Roseborough
882daa5d53 improve portability of test 2008-04-18 14:46:09 +00:00
James Roseborough
99720c9d2a Remove race condition from weak table test 2008-04-18 14:45:49 +00:00
James Roseborough
3ccfa61076 Add test for replace bug 2008-04-18 14:45:32 +00:00
James Roseborough
79734ab679 Fix weak tables, improve unit test 2008-04-11 13:44:39 +00:00
James Roseborough
89dd1594b4 Improved weak table implementation 2008-04-11 01:00:18 +00:00
James Roseborough
ddf9acc506 improve table tests. 2008-04-11 00:08:19 +00:00
James Roseborough
09771147cf Improve unit test for "next()" function 2008-04-09 12:46:05 +00:00
James Roseborough
09aa37a837 Weak table implementation. 2008-04-08 21:55:16 +00:00
James Roseborough
720c6027d6 Add unit test for weak tables. 2008-04-08 15:49:40 +00:00
James Roseborough
6e333f9567 Add constructor with metatable. 2008-04-07 16:27:20 +00:00
James Roseborough
e13eb1a2ee Bump version post-public release. 2008-04-04 04:42:48 +00:00
James Roseborough
73324845bf Up to version 0.24, add "dist" ant target to create a distribution. 2008-04-04 04:06:12 +00:00
James Roseborough
727f8725d2 Add LTable.put(String,int) utility function 2008-04-03 15:33:51 +00:00
James Roseborough
35ed9dca3c Fix sorting with custom comparator, and add unit tests to regress 2008-04-03 03:58:15 +00:00
James Roseborough
faaee456ad Bump version to 22 2008-02-21 23:38:45 +00:00
James Roseborough
c0b26d89c3 Revert to 1.4 style usage 2008-02-21 23:38:34 +00:00
James Roseborough
68eb650ab9 Let Platform.DEBUG_CLASS_NAME be public and mutable. 2008-02-21 23:38:23 +00:00
Shu Lei
c170cd3fa0 performance improvement:
public void func() {
   synchronized(this) {
       ...
   }
}

is less efficient than

public synchronized void func() {
   ...
}
2008-02-21 01:00:43 +00:00
Ian Farmer
1672e73c40 Change LuaC to read bytes instead of chars.
This fixes some of the test cases by avoiding a lossy round-trip conversion
from bytes presumed to be, but might not be, UTF-8 encoded characters, and
then back to bytes. All of the compiler test cases now pass.
2008-02-13 08:02:17 +00:00
James Roseborough
9c4bbf670f Fix for case when more than 127 local variables are declared in one function 2008-02-08 21:54:53 +00:00
Ian Farmer
cd760d6ec8 Fix the bug in the CLOSE instruction that was causing upvalues3.lua to fail. 2008-02-07 23:13:48 +00:00
Ian Farmer
cb6ce20dde New failing test case involving do/end blocks and upvalues. 2008-02-07 18:56:17 +00:00
James Roseborough
1eb969f84d Add version.properties to track version number of the build. 2008-02-06 19:28:12 +00:00
James Roseborough
7679040493 Fix for table initializers greater than 50 elements. 2008-02-06 19:00:23 +00:00
James Roseborough
f87f77e327 Bump versino to 0.17 2008-02-05 19:32:04 +00:00
James Roseborough
8e06d7aff9 Add test case with many local variables. 2008-02-05 19:19:39 +00:00
James Roseborough
e126010a36 Add test for huge, sparse table initialization 2008-02-05 19:13:48 +00:00
James Roseborough
78bb849c08 Revert changes to getglobal() setglobal() 2008-02-05 19:13:14 +00:00
James Roseborough
bc5dd60a1a Fix LuaState.getglobal() and LuaState.setglobal() to use the currently closure's environment. 2008-01-29 00:17:50 +00:00
Ian Farmer
527ca6545d Fix bugs in LTable.
Two issues:
(1) When resizing, clearSlot() needs to be used to correctly move
affected hash entries.
(2) table.maxn is documented as returning the largest numeric key in
the table. This requires a linear scan through the entire table, but
the Lua documentation explicitly warns about that.
2008-01-23 02:22:19 +00:00
Ian Farmer
4fa417bdd9 Fix a bug with table resizing. Includes junit test case. 2008-01-23 01:21:54 +00:00
James Roseborough
f55a393fb8 Fix environment propogation from function to function. 2008-01-17 00:59:16 +00:00
Ian Farmer
32d5e9c15e Fix the bug where the wrong file/line# is reported on attempts to index nil. 2008-01-17 00:36:20 +00:00
Ian Farmer
08f4a02529 Fix error reporting in LValue.luaBinOpUnknown.
Since this method always fails with an error message, it should report its
own type, rather than the type of the other object, in the message.
2008-01-16 18:17:42 +00:00
Ian Farmer
4e239b6c46 Fix incorrect comparison in checkstack() when stack is one element too small. 2008-01-16 18:07:41 +00:00
Ian Farmer
1cddbe97a2 Add new test case for stack handling. 2008-01-16 06:07:59 +00:00
James Roseborough
8570761928 Make utf-8 conversion more robust to bad input. 2008-01-14 23:11:09 +00:00