Mike Pall
05099f0764
PPC: Add ipairs() fast function and its iterator.
2010-10-01 23:45:56 +02:00
Mike Pall
61d498be87
PPC: Add next() and pairs() fast functions.
2010-10-01 23:43:39 +02:00
Mike Pall
dcf006bfa2
PPC: Add BC_ITERN and BC_ISNEXT.
2010-10-01 01:44:02 +02:00
Mike Pall
ac76493df1
Specialize bytecode for pairs()/next() iterator. Speedup: 3.5x.
...
Parser predict pairs/next and emits specialized bytecode.
Bytecode is descpecialized at runtime if the prediction was wrong.
Store slot index in hidden control var to avoid key lookups.
2010-09-30 21:55:32 +02:00
Mike Pall
c0a8f5fb32
PPC: Add dispatch to fast function fallback handlers.
2010-09-30 02:58:29 +02:00
Mike Pall
4afff973a4
PPC: Add bit.* fast functions.
2010-09-30 02:56:54 +02:00
Mike Pall
408cd055a4
PPC: Add basic infrastructure for fast functions.
2010-09-30 02:54:33 +02:00
Mike Pall
a47136031e
PPC: Add frame unwind info for assembler part.
...
Add define for target-specific exception handler return register.
2010-09-28 17:50:33 +02:00
Mike Pall
dc4fdecfb5
PPC: Don't use callee-save registers when folding '%' operator.
2010-09-28 14:59:33 +02:00
Mike Pall
f635e3e5bb
PPC: Add dispatch target for call hook.
2010-09-23 02:42:29 +02:00
Mike Pall
493d0aa259
PPC: Add dispatch targets for instruction and return hooks.
2010-09-23 02:41:06 +02:00
Mike Pall
6aedfa7919
PPC: Add lj_vm_resume().
2010-09-23 02:35:51 +02:00
Mike Pall
d270e890f1
PPC: Reschedule continuation dispatch.
2010-09-21 21:43:29 +02:00
Mike Pall
aff6b3080f
Whitespace.
2010-09-21 21:41:49 +02:00
Mike Pall
201eec484c
PPC: Add fixed register for TOBIT bias.
2010-09-21 21:40:39 +02:00
Mike Pall
0c0047e50c
PPC: Add missing register setup after unwind to ff pcall.
2010-09-21 21:36:37 +02:00
Mike Pall
7336305e7c
PPC: Fix result copy for return to Lua.
2010-09-21 21:21:21 +02:00
Mike Pall
1c3b8c51c9
PPC: Fix constant folding of modulo operator.
2010-09-21 20:54:12 +02:00
Mike Pall
9203d278d0
PPC: Add metamethod handlers and continuations for comparisons.
2010-09-17 16:07:01 +02:00
Mike Pall
9dc98280d2
PPC: Reschedule bytecode instruction fetch.
2010-09-17 16:01:02 +02:00
Mike Pall
66f0c43780
PPC: Add BC_CAT and lj_cont_cat.
2010-09-17 15:54:50 +02:00
Mike Pall
4f1d43d03e
PPC: Fix ordered comparisons for NaN operands.
2010-09-16 02:09:19 +02:00
Mike Pall
028f80c599
PPC: Avoid comparison with NaN in BC_ISEQN/BC_ISNEN.
2010-09-16 02:06:20 +02:00
Mike Pall
3f32f4ac99
PPC: Add BC_TSETM.
2010-09-15 17:28:24 +02:00
Mike Pall
028a65a597
PPC: Add BC_VARG.
2010-09-15 17:27:17 +02:00
Mike Pall
5b740046f8
PPC: Fix line number in stack overflow error.
2010-09-14 03:13:44 +02:00
Mike Pall
f8b7fb7d2b
PPC: Fix write barrier in BC_TSETV.
2010-09-14 01:23:34 +02:00
Mike Pall
2bdf3fcd50
PPC: Fix KBASE restore in BC_CALLT.
2010-09-14 01:20:01 +02:00
Mike Pall
fe159ea2fb
PPC: Keep MULTRES in a register.
2010-09-14 00:46:06 +02:00
Mike Pall
0001916f8d
PPC: Add metamethod handlers for indexing instructions.
2010-09-13 21:26:27 +02:00
Mike Pall
7a766c771d
PPC: Add missing write barrier to BC_TSETV.
2010-09-13 21:21:39 +02:00
Mike Pall
dcfc385bf3
PPC: Fix write barrier and linkage for BC_USETV/BC_USETS.
...
Some older linkers can't rearrange to accomodate R_PPC_REL14.
2010-09-13 21:19:33 +02:00
Mike Pall
90f22760af
PPC: Add argument coercion for BC_FORI.
2010-09-11 01:53:59 +02:00
Mike Pall
c330af2452
PPC: Add continuation dispatch and RA/nop continuations.
2010-09-11 01:52:26 +02:00
Mike Pall
cabcce1e1d
PPC: Add metamethod handlers for arithmetic instructions.
2010-09-11 01:47:49 +02:00
Mike Pall
e15e4c4d95
PPC: Add metamethod handlers for call instructions.
2010-09-11 01:46:11 +02:00
Mike Pall
8a1af8cf89
PPC: Use unsigned compares for pointer comparisons.
2010-09-09 01:14:17 +02:00
Mike Pall
9fd10963b9
PPC: Add upvalue get/set instructions.
2010-09-09 01:08:07 +02:00
Mike Pall
ec8f2918ba
PPC: Add closure-related instructions.
2010-09-09 01:06:55 +02:00
Mike Pall
b2aa08c75c
PPC: Add helper function for folding arithmetic ops.
2010-09-08 00:14:36 +02:00
Mike Pall
932193baa6
PPC: Add modulo instructions.
2010-09-08 00:12:23 +02:00
Mike Pall
e9e7df5bfe
PPC: Add heavily optimized floor/ceil/trunc functions.
2010-09-08 00:09:36 +02:00
Mike Pall
db735e0519
PPC: Add binary arithmetic instructions (except MOD).
2010-09-07 01:24:25 +02:00
Mike Pall
15834c3990
PPC: Add unary instructions.
2010-09-07 01:15:21 +02:00
Mike Pall
341820987b
PPC: Add table constructors.
2010-09-06 15:20:58 +02:00
Mike Pall
711e55bdf8
PPC: Add tailcall instructions.
2010-09-04 12:58:36 +02:00
Mike Pall
684acbe930
PPC: Add call and iterator call instructions.
2010-09-03 21:02:55 +02:00
Mike Pall
b4c8b05ad5
PPC: Add table indexing with variable keys or uint8_t.
2010-09-03 19:35:44 +02:00
Mike Pall
5043efae7d
PPC: Add table indexing with string keys. Add get/set global.
2010-09-03 19:31:07 +02:00
Mike Pall
44fb3ebc64
PPC: Add unary test and copy instructions.
2010-09-01 20:29:29 +02:00
Mike Pall
7457ee869a
PPC: Add comparison instructions.
2010-09-01 20:27:39 +02:00
Mike Pall
222e01fa83
PPC: Add loop instructions.
2010-09-01 20:24:08 +02:00
Mike Pall
7ccdc8045b
PPC: Unwind the stack after an error is thrown.
2010-09-01 00:27:48 +02:00
Mike Pall
d67eb4de49
PPC: Handle stack growth on return to C.
2010-09-01 00:25:35 +02:00
Mike Pall
d71bd78b8f
PPC: Add move and constant instructions.
2010-09-01 00:19:27 +02:00
Mike Pall
00d10711ae
PPC: Add return instructions.
2010-08-31 23:55:18 +02:00
Mike Pall
fc1866fb6f
PPC: Handle stack growth during function calls.
2010-08-31 23:52:45 +02:00
Mike Pall
233dc76078
PPC: Add support to call Lua functions.
2010-08-31 23:47:55 +02:00
Mike Pall
96c1d8a8ad
PPC: Clean up JIT/non-JIT symbol declarations in assembler part.
2010-08-31 00:49:29 +02:00
Mike Pall
f4d4af1b6d
PPC: Add support to call C functions and to return back to C.
...
Command line starts now, but it can't run any Lua code yet.
2010-08-31 00:29:38 +02:00
Mike Pall
690b1f3e4b
PPC: Add entry and exit points into VM. Add type check macros.
2010-08-31 00:17:22 +02:00
Mike Pall
4ef6564f2e
PPC: Add instruction/call decode + dispatch macros.
2010-08-31 00:05:10 +02:00
Mike Pall
c7f91f8cd1
PPC: Add register assignments and type definitions.
2010-08-31 00:04:32 +02:00
Mike Pall
9cb5046c3f
PPC: Add stack frame layout for PPCSPE target.
...
PPCSPE target compiles now, but will trap for any NYI parts.
Cross-compilation instructions:
make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe- TARGET=ppcspe
2010-08-27 18:32:24 +02:00
Mike Pall
96b60d5ef3
PPC: Add skeleton for PowerPC interpreter.
2010-08-27 16:52:45 +02:00