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 76accd1930
Update copyright notices
4 years ago
..
Makefile issue #98 split up the source for the AST parser to make it more workable 5 years ago
README.rst Various updates 4 years ago
bit.c issue #133 add LuaJIT's bit library so that we can support dynasm 7 years ago
lapi.c Update copyright notices 4 years ago
lauxlib.c issue #156 6 years ago
lbaselib.c issue #156 6 years ago
lbitlib.c issue #156 6 years ago
lcode.c Update copyright notices 4 years ago
lcorolib.c issue #156 6 years ago
lctype.c issue #156 6 years ago
ldblib.c issue #156 6 years ago
ldebug.c issue #157 rename bytecodes 6 years ago
ldo.c Update copyright notices 4 years ago
ldump.c Update copyright notices 4 years ago
lfunc.c Update copyright notices 4 years ago
lgc.c issue #156 6 years ago
linit.c issue #169 4 years ago
liolib.c issue #156 6 years ago
llex.c issue #163 First attempt to implement a Go like defer statement 4 years ago
lmathlib.c issue #156 6 years ago
lmem.c issue #156 6 years ago
loadlib.c issue #156 6 years ago
lobject.c issue #156 6 years ago
lopcodes.c Update copyright notices 4 years ago
loslib.c issue #156 6 years ago
lparser.c Update copyright notices 4 years ago
lstate.c issue #163 First attempt to implement a Go like defer statement 4 years ago
lstring.c issue #156 6 years ago
lstrlib.c issue #157 more opcode renaming 6 years ago
ltable.c issue #171 4 years ago
ltablib.c issue #156 6 years ago
ltests.c change GETTABLE_I to work on objects that may not be tables 7 years ago
ltm.c issue #156 6 years ago
lua.c issue #169 4 years ago
luac.c issue #156 6 years ago
lundump.c Update copyright notices 4 years ago
lutf8lib.c issue #156 6 years ago
lvm.c Update copyright notices 4 years ago
lzio.c issue #156 6 years ago
ravi_alloc.c issue #151 adopt Doug Lea's allocator 6 years ago
ravi_ast_parse.c Update copyright notices 4 years ago
ravi_ast_print.c Update copyright notices 4 years ago
ravi_ast_typecheck.c Update copyright notices 4 years ago
ravi_dmrc_parsesymbols.c issue #110 6 years ago
ravi_jitshared.c Update copyright notices 4 years ago
ravi_llvmarith1.cpp Update copyright notices 4 years ago
ravi_llvmarith2.cpp Update copyright notices 4 years ago
ravi_llvmcall.cpp Update copyright notices 4 years ago
ravi_llvmcodegen.cpp Update copyright notices 4 years ago
ravi_llvmcomp.cpp Update copyright notices 4 years ago
ravi_llvmforloop.cpp Update copyright notices 4 years ago
ravi_llvmforprep.cpp Update copyright notices 4 years ago
ravi_llvmjit.cpp Update copyright notices 4 years ago
ravi_llvmload.cpp Update copyright notices 4 years ago
ravi_llvmluaapi.cpp Update copyright notices 4 years ago
ravi_llvmrest.cpp Update copyright notices 4 years ago
ravi_llvmreturn.cpp Update copyright notices 4 years ago
ravi_llvmtable.cpp Update copyright notices 4 years ago
ravi_llvmtforcall.cpp Update copyright notices 4 years ago
ravi_llvmtypes.cpp Update copyright notices 4 years ago
ravi_membuf.c Update copyright notices 4 years ago
ravi_mirjit.c Update copyright notices 4 years ago
ravi_nojit.c Update copyright notices 4 years ago
ravi_omrjit.c Update copyright notices 4 years ago
ravi_omrjitapi.c issue #110 6 years ago
ravi_profile.c issue #109 8 years ago
ravijit.cpp Update copyright notices 4 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

Apart from LLVM backend, we also have MIR and OMR JIT backends.
These backends use C as the intermediate language. The common C code generator is in:

* ravi_jitshared.c - this is the C code generator for a given Ravi / Lua function

The MIR JIT implementation is in:

* ravi_mirjit.c - defines the driver functions. The MIR backend has its own C preprocessor, parser and code generator.

The OMR JIT driver is in:

* ravi_omrjit.c - defines the driver functions. The OMR JIT backend uses the dmrC project as the C preprocessor, parser and code generator.

The new Ravi Parser and Code Generator implementation is in:

* ravi_ast_parse.c - contains the parser that builds AST
* ravi_ast_print.c - contains utilities for printing out the AST
* ravi_ast_typecheck.c - contains the type checking phase of the parser

Ravi also uses Doug Lea's malloc implementation. The implementation is in:

* ravi_alloc.c - Doug Lea's malloc implementation, adapted for Ravi.