Commit Graph

603 Commits

Author SHA1 Message Date
Ian Farmer
ef2c087c1b Number fixes.
(1) Change how LDouble computes hashCode to match standard Lua.
(2) Change how toJavaString deals with NaN, infinity, and -0.
(3) Move 0 * -2 case to end of mathlib test case so that problematic tests
    are towards the end.
2008-06-02 04:18:42 +00:00
Ian Farmer
807541ace2 Fix table.remove:
(1) When nothing is removed, it returns zero results, not 1 nil result.
(2) Ignore requests to remove elements past the length of the table.
2008-06-02 04:14:13 +00:00
Ian Farmer
db457117e3 Change getCurrentPc: this fixes the line number difference in testModule. 2008-06-02 04:04:31 +00:00
Ian Farmer
9fa8b26e2d Add some helper functions for argument validation. 2008-05-30 18:31:47 +00:00
James Roseborough
914806afb4 Fix lua-to-java type coercion. 2008-05-28 17:22:55 +00:00
James Roseborough
03224d7da3 simplify delegation of luaGetTable, luaSetTable. 2008-05-28 00:44:31 +00:00
James Roseborough
06afefebb5 Add implementation for luajava.createProxy 2008-05-28 00:32:39 +00:00
James Roseborough
a34591851d updated luajava features. 2008-05-28 00:17:16 +00:00
James Roseborough
2c857d3cb3 Streamline delegation chain for table event processing. 2008-05-26 19:21:15 +00:00
James Roseborough
b8d0191dc9 Fix require return value 2008-05-24 00:45:57 +00:00
James Roseborough
02f8452515 Fix require sentinel logic 2008-05-24 00:43:39 +00:00
James Roseborough
bb3465c375 Fix getmetatable when metatable contains __metatable tag 2008-05-24 00:03:15 +00:00
James Roseborough
2583228b87 return nil when remove removes nothing 2008-05-24 00:02:48 +00:00
James Roseborough
d383b4703f fix gettable logic 2008-05-23 23:19:22 +00:00
James Roseborough
6e03c38e39 perform function metatable calls outside of current stack frame. 2008-05-23 18:43:56 +00:00
James Roseborough
5b1913d839 refactor top management 2008-05-23 18:32:41 +00:00
James Roseborough
ac01ec4719 delegate metatable gets, sets to luastate 2008-05-23 15:04:23 +00:00
James Roseborough
1b284e26c2 Refactor gettable metatable processing 2008-05-23 14:58:20 +00:00
James Roseborough
23609197b9 fix metatable processing 2008-05-23 14:25:58 +00:00
James Roseborough
02631fface Add copyright 2008-05-23 13:38:02 +00:00
James Roseborough
8c074d6ac6 refactor get table with metatable 2008-05-23 07:39:57 +00:00
James Roseborough
c2c573744b Refactor luaGetTable() to return a value. 2008-05-23 00:37:45 +00:00
James Roseborough
c20ea01bc9 if-then-else logic to jit compiler 2008-05-22 04:28:03 +00:00
James Roseborough
2128ef7272 Start to add branching 2008-05-21 05:19:43 +00:00
James Roseborough
0280d4eecf additional jit implementations 2008-05-21 04:46:22 +00:00
James Roseborough
539b0ea57f Allow jit to find upvalues. 2008-05-21 00:37:10 +00:00
James Roseborough
3582b97d8b Add OP_CLOSURE to jit 2008-05-21 00:33:00 +00:00
James Roseborough
8d055862e0 Add version "Luaj ${version}" into _VERSION field at build time. 2008-05-19 17:18:10 +00:00
James Roseborough
d9c3f0ae15 Fix for loop (jit), make jist test use jit closures. 2008-05-18 19:24:09 +00:00
James Roseborough
039d79fe5f Simplified, extended jit implementation 2008-05-18 15:12:03 +00:00
James Roseborough
c5c322fee1 Jut compile logic for for loop. 2008-05-17 23:28:15 +00:00
James Roseborough
ebdbe60849 Use JavaCompiler class to compile generated files. 2008-05-17 21:53:56 +00:00
James Roseborough
2f7f25e996 Set up basic jit compiling framework. 2008-05-17 17:14:52 +00:00
James Roseborough
68d08c6cbd Add j2me components to j2se, script jars. 2008-05-14 00:19:56 +00:00
James Roseborough
f84e4aeaa1 Fix bootclasspath 2008-05-07 20:31:53 +00:00
James Roseborough
c01fc7aed9 Allow debug class setting from system properties. 2008-05-06 23:21:33 +00:00
James Roseborough
c759188034 Simplify build file, rationalize directories, rename build jars. 2008-05-06 14:12:46 +00:00
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