You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ravi/src
Dibyendu Majumdar 6e6f31835e
fix compilation error due to warning
9 years ago
..
README.rst Update README.rst 9 years ago
lapi.c issue #60 JIT compile GETTABLE_S 9 years ago
lauxlib.c merge 5.3.1 9 years ago
lbaselib.c add api ravitype() to enable extended type information 9 years ago
lbitlib.c initial import 9 years ago
lcode.c issue #64 bnot_i issue on win32 9 years ago
lcorolib.c merge 5.3.1 9 years ago
lctype.c initial import 9 years ago
ldblib.c merge 5.3.1 9 years ago
ldebug.c issue #60 JIT compile GETTABLE_S 9 years ago
ldo.c linux compile error 9 years ago
ldump.c issue #60 JIT compile GETTABLE_S 9 years ago
lfunc.c issue #60 JIT compile GETTABLE_S 9 years ago
lgc.c merge 5.3.1 9 years ago
linit.c start work on Lua LLVM bindings 9 years ago
liolib.c merge 5.3.1 9 years ago
llex.c merge 5.3.1 9 years ago
lmathlib.c merge 5.3.1 9 years ago
lmem.c merge 5.3.1 9 years ago
loadlib.c merge 5.3.1 9 years ago
lobject.c merge 5.3.1 9 years ago
lopcodes.c issue #60 JIT compile GETTABLE_S 9 years ago
loslib.c merge 5.3.1 9 years ago
lparser.c issue #61 more tests 9 years ago
lstate.c merge 5.3.1 9 years ago
lstring.c merge 5.3.1 9 years ago
lstrlib.c merge 5.3.1 9 years ago
ltable.c fix compilation error on mac osx 9 years ago
ltablib.c refactor api 9 years ago
ltests.c issue #15 fix compilation error in ltests.c 9 years ago
ltm.c still debugging the bug related to L->top 9 years ago
lua.c add notice regarding options enabled 9 years ago
luac.c merge 5.3.1 9 years ago
lundump.c issue #60 JIT compile GETTABLE_S 9 years ago
lutf8lib.c merge 5.3.1 9 years ago
lvm.c issue #64 bnot_i issue on win32 9 years ago
lzio.c initial import 9 years ago
ravi_gccarith1.c code reformat 9 years ago
ravi_gccarith2.c code reformat 9 years ago
ravi_gcccall.c fix libgccjit compilation errors caused by latest changes 9 years ago
ravi_gcccodegen.c fix libgccjit compilation errors caused by latest changes 9 years ago
ravi_gcccomp.c fix libgccjit compilation errors caused by latest changes 9 years ago
ravi_gccforloop.c implement specialized comparison ops and refactor the JIT compiler to avoid unnecessary conversion to pointers 9 years ago
ravi_gccforprep.c fix libgccjit compilation errors caused by latest changes 9 years ago
ravi_gccjit.c issue #15 add new JIT option tracehook to enable per bytecode updates to savedpc and call to luaG_traceexec 9 years ago
ravi_gccload.c implement specialized comparison ops and refactor the JIT compiler to avoid unnecessary conversion to pointers 9 years ago
ravi_gccrest.c code reformat 9 years ago
ravi_gccreturn.c code reformat 9 years ago
ravi_gcctable.c fix libgccjit compilation errors caused by latest changes 9 years ago
ravi_gcctforcall.c code reformat 9 years ago
ravi_gcctypes.c code reformat 9 years ago
ravi_llvmarith1.cpp issue #15 if emit_debug_trace() has been called then we can avoid setting savedpc again 9 years ago
ravi_llvmarith2.cpp issue #15 if emit_debug_trace() has been called then we can avoid setting savedpc again 9 years ago
ravi_llvmcall.cpp issue #15 if emit_debug_trace() has been called then we can avoid setting savedpc again 9 years ago
ravi_llvmcodegen.cpp issue #60 improve parsing of table get access with short strings 9 years ago
ravi_llvmcomp.cpp issue #15 if emit_debug_trace() has been called then we can avoid setting savedpc again 9 years ago
ravi_llvmforloop.cpp code reformat 9 years ago
ravi_llvmforprep.cpp code reformat 9 years ago
ravi_llvmjit.cpp issue #65 9 years ago
ravi_llvmload.cpp code reformat 9 years ago
ravi_llvmluaapi.cpp fix compilation error due to warning 9 years ago
ravi_llvmrest.cpp issue #15 if emit_debug_trace() has been called then we can avoid setting savedpc again 9 years ago
ravi_llvmreturn.cpp code reformat 9 years ago
ravi_llvmtable.cpp issue #61 fix bug in compilation 9 years ago
ravi_llvmtforcall.cpp issue #15 if emit_debug_trace() has been called then we can avoid setting savedpc again 9 years ago
ravi_llvmtypes.cpp issue #60 add optimized versions of table access with integer keys 9 years ago
ravi_nojit.c issue #57 more work on test cases 9 years ago
ravijit.cpp issue #57 adding test cases 9 years ago

README.rst

This folder has all the Lua and Ravi source files.


The Lua sources begin with the letter ``l``.
The following Lua sources have been enhanced for Ravi.

* lvm.c - this has the Ravi bytecode implementations
* lopcodes.c - definitions of Ravi opcodes
* ldo.c - changes to enable calling JITed function
* lparser.c - parser changes for optional typing
* lcode.c - code generator changes for optional typing
* lfunc.c - changes to support JIT compilation
* linit.c - the Ravi api functions get loaded here
* ltable.c - enhancements for Ravi array types
* lapi.c - enhancements for Ravi array types

The LLVM JIT implementation is in following sources:

* ravijit.cpp - basic LLVM infrastructure and Ravi API definition
* ravi_llvmtypes.cpp - contains LLVM type definitions for Lua objects
* ravi_llvmcodegen.cpp - LLVM JIT compiler - main driver for compiling Lua bytecodes into LLVM IR
* ravi_llvmload.cpp - implements OP_LOADK and OP_MOVE, and related operations, also OP_LOADBOOL
* ravi_llvmcomp.cpp - implements OP_EQ, OP_LT, OP_LE, OP_TEST and OP_TESTSET.
* ravi_llvmreturn.cpp - implements OP_RETURN
* ravi_llvmforprep.cpp - implements OP_FORPREP
* ravi_llvmforloop.cpp - implements OP_FORLOOP
* ravi_llvmtforcall.cpp - implements OP_TFORCALL and OP_TFORLOOP
* ravi_llvmarith1.cpp - implements various type specialized arithmetic operations - these are Ravi extensions
* ravi_llvmarith2.cpp - implements Lua opcodes such as OP_ADD, OP_SUB, OP_MUL, OP_DIV, OP_POW, OP_IDIV, OP_MOD, OP_UNM
* ravi_llvmcall.cpp - implements OP_CALL, OP_JMP
* ravi_llvmtable.cpp - implements OP_GETTABLE, OP_SETTABLE and various other table operations, OP_SELF, and also upvalue operations
* ravi_llvmrest.cpp - OP_CLOSURE, OP_VARARG, OP_CONCAT