aboutsummaryrefslogtreecommitdiff
path: root/src/buildvm_x86.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix generated 64 bit Mach-O assembler output.Mike Pall2010-03-051-0/+8
|
* Enable tracing of recursion.Mike Pall2010-03-011-31/+33
| | | | | Now compiles tail-recursion, up-recursion and down-recursion. Benchmarks vs. Lua: fib 20x, ack 23x, binary-trees 4.7x.
* Save/restore remaining callee-save regs on trace<->interp transitions.Mike Pall2010-02-271-328/+328
|
* Add trace exit helper for x64. Fix trace entry for x64.Mike Pall2010-02-241-960/+958
|
* Rethrow errors from trace exit handling from the right C frame.Mike Pall2010-02-191-485/+488
|
* Use a different marker for hot calls.Mike Pall2010-02-151-342/+346
|
* Implement return hooks for Lua functions (zero-cost if disabled).Mike Pall2010-02-141-511/+514
|
* Implement call hooks (zero-cost if disabled).Mike Pall2010-02-141-651/+659
|
* Major redesign of function call handling.Mike Pall2010-02-131-1164/+1197
| | | | | | | | | | | Drop call gates. Use function headers, dispatched like bytecodes. Emit BC_FUNCF/BC_FUNCV bytecode at PC 0 for all Lua functions. C functions and ASM fast functions get extra bytecodes. Modify internal calling convention: new base in BASE (formerly in RA). Can now use better C function wrapper semantics (dynamic on/off). Prerequisite for call hooks with zero-overhead if disabled. Prerequisite for compiling recursive calls. Prerequisite for efficient 32/64 bit prototype guards.
* Move dispatch tables out of GG_State struct.Mike Pall2010-02-111-2/+2
|
* Switch to pre-initialized stacks. Drop frame clearing in interpreter.Mike Pall2010-02-111-1226/+1230
|
* Drop bc field in GCproto since the bytecode is colocated.Mike Pall2010-02-081-6/+6
|
* Integrate MinGW build with DWARF2 exception handling.Mike Pall2010-01-221-0/+45
| | | | | | | | Only works with DWARF2-enabled GCC 4.x (not the default MinGW GCC). Fix fastcall symbol names for COFF assembler output. Add DWARF2 unwind info to COFF assembler output. Use COFF assembler mode for MinGW builds. Always enable the DWARF2 handler if compiled with GCC.
* Add support for WIN64 exception handling to external unwinder.Mike Pall2010-01-051-1/+1
| | | | | | Modify unwinding to always return _ff or _c unwind type. Generate PE object .pdata/.xdata sections for x64 interpreter. Can drop r12-r15 saves in Windows/x64 interpreter now.
* Fix PE object build for fastcall entry points into interpreter.Mike Pall2010-01-051-2/+2
|
* Major rewrite of error handling to allow external/internal unwinding.Mike Pall2010-01-021-819/+817
| | | | | | | | | | | Make external unwinding the default on x64. It's mandatory on WIN64 due to the abundance of callee-saved regs. Allow piecewise internal frame unwinding and optional cleanup. Store ERRMEM, ERRERR and ERRCPP early and copy down later. Use FRAME_CP for lj_vm_resume. Add lj_vm_unwind_*_eh variants as landing pads for external unwinder. Use fastcall for lj_vm_unwind_*. Can drop r12/r13 saves in POSIX/x64 interpreter now.
* Implement yield from C hooks.Mike Pall2009-12-301-898/+901
| | | | | | Get number of multiple results from C frame. Add lj_cont_hook: restores multres and dispatch to static ins. Can use fastcall for lj_dispatch_ins() now.
* Add DWARF2 unwind info for x64 interpreter.Mike Pall2009-12-291-23/+65
|
* Final calling convention cleanup for x64 interpreter.Mike Pall2009-12-281-430/+430
|
* More calling convention cleanups for x64 interpreter.Mike Pall2009-12-271-190/+190
|
* Use fastcall for remaining 1-arg/2-arg calls from interpreter.Mike Pall2009-12-271-1168/+1168
| | | | Simplifies conversion to x64 calling conventions.
* Add SSE variant of pow/powi to interpreter.Mike Pall2009-12-251-571/+568
| | | | | | Use SSE pow/powi helper functions from compiled code. Cleanup use of helper functions. Related cleanups of folding functions in x64 interpreter.
* Add build infrastructure for the SSE2-enabled interpreter.Mike Pall2009-12-221-1/+1
| | | | Works on x86 now. Will be enabled by default on x64 (not ready, yet).
* Fix last commit.Mike Pall2009-12-221-1/+1
|
* Miscellaneous cleanups for x64 interpreter.Mike Pall2009-12-221-11/+11
|
* Add SSE2 variants for all FP ops (except vm_pow*) in interpreter.Mike Pall2009-12-221-900/+1333
|
* Add SSE2 variants of basic arithmetic ops in interpreter.Mike Pall2009-12-211-412/+661
|
* Adapt most outbound calls in interpreter to x64 calling conventions.Mike Pall2009-12-191-756/+757
|
* Adapt primary inbound calls in x64 interpreter.Mike Pall2009-12-171-278/+278
| | | | Change argument order for lj_vm_cpcall() to simplify x64 interpreter.
* Cleanup DynASM action list flushes.Mike Pall2009-12-161-772/+784
|
* Change some misuses of esp in x64 interpreter.Mike Pall2009-12-161-2/+2
|
* Define x64 interpreter frame and cleanup use of stack temps.Mike Pall2009-12-161-18/+18
|
* Unify interpreter reg saves/restores for WIN64 prolog/epilog req.Mike Pall2009-12-151-795/+795
|
* Add DynASM-built files to public repo.Mike Pall2009-12-081-0/+1730