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 08c05100cf
issue #203 leftover cleanup
3 years ago
..
Makefile issue #204 Code reorg 3 years ago
README.rst issue #203 Doc update 3 years ago
bit.c issue #133 add LuaJIT's bit library so that we can support dynasm 7 years ago
lapi.c issue #196 use a macro for slices 3 years ago
lapi.h issue #204 Code reorg 3 years ago
lauxlib.c issue #157 cleanup 4 years ago
lbaselib.c issue #196 backport generational GC from Lua 5.4 4 years ago
lbitlib.c issue #156 6 years ago
lcode.c Update copyright notices 4 years ago
lcode.h issue #204 Code reorg 3 years ago
lcorolib.c issue #163 Maintain optionality of defer statement 4 years ago
lctype.c issue #156 6 years ago
lctype.h issue #204 Code reorg 3 years ago
ldblib.c issue #156 6 years ago
ldebug.c issue #193 Lua 5.4 string library improvements back-ported 4 years ago
ldebug.h issue #204 Code reorg 3 years ago
ldo.c issue #163 Maintain optionality of defer statement 4 years ago
ldo.h issue #204 Code reorg 3 years ago
ldump.c Update copyright notices 4 years ago
lfunc.c issue #163 Fix issue with handling of deferred functions when a Lua thread is closed. 4 years ago
lfunc.h issue #204 Code reorg 3 years ago
lgc.c issue #196 reformat 3 years ago
lgc.h issue #204 Code reorg 3 years ago
linit.c issue #198 WIP add interface to RaviCompiler project 4 years ago
liolib.c issue #156 6 years ago
llex.c issue #195 lexer / utf8 improvements from Lua 5.4 4 years ago
llex.h issue #204 Code reorg 3 years ago
llimits.h issue #204 Code reorg 3 years ago
lmathlib.c issue #191 #193 backport random number generator from Lua 5.4 4 years ago
lmem.c issue #156 6 years ago
lmem.h issue #204 Code reorg 3 years ago
loadlib.c issue #198 Updated interface to the compiler lib 3 years ago
lobject.c issue #195 number and integer conversions 4 years ago
lobject.h issue #204 Code reorg 3 years ago
lopcodes.c issue #204 Code reorg 3 years ago
lopcodes.h issue #204 Code reorg 3 years ago
loslib.c issue #156 6 years ago
lparser.c issue #204 Code reorg 3 years ago
lparser.h issue #204 Code reorg 3 years ago
lprefix.h issue #204 Code reorg 3 years ago
lstate.c issue #203 Removing LLVM support, see llvm branch for archived version 3 years ago
lstate.h issue #204 Code reorg 3 years ago
lstring.c issue #156 6 years ago
lstring.h issue #204 Code reorg 3 years ago
lstrlib.c issue #195 lstrlib 3 years ago
ltable.c issue #196 backport generational GC from Lua 5.4 4 years ago
ltable.h issue #204 Code reorg 3 years ago
ltablib.c issue #156 6 years ago
ltests.c issue #196 Update GC code from Lua 5.4.2 3 years ago
ltm.c issue #99 Use dedicated structure for Ravi array types 4 years ago
ltm.h issue #204 Code reorg 3 years ago
lua.c issue #203 leftover cleanup 3 years ago
luac.c issue #156 6 years ago
lundump.c Update copyright notices 4 years ago
lundump.h issue #204 Code reorg 3 years ago
lutf8lib.c issue #195 lexer / utf8 improvements from Lua 5.4 4 years ago
lvm.c add assertions 3 years ago
lvm.h issue #204 Code reorg 3 years ago
lzio.c issue #156 6 years ago
lzio.h issue #204 Code reorg 3 years ago
ravi_alloc.c issue #151 adopt Doug Lea's allocator 6 years ago
ravi_alloc.h issue #204 Code reorg 3 years ago
ravi_arch.h issue #204 Code reorg 3 years ago
ravi_complib.c issue #198 Updated interface to the compiler lib 3 years ago
ravi_def.h issue #204 Code reorg 3 years ago
ravi_jit.c issue #204 Code reorg 3 years ago
ravi_jit.h issue #204 Code reorg 3 years ago
ravi_jitshared.c issue #204 Code reorg 3 years ago
ravi_jitshared.h issue #204 Code reorg 3 years ago
ravi_membuf.c issue #204 Code reorg 3 years ago
ravi_membuf.h issue #204 Code reorg 3 years ago
ravi_mirjit.c issue #204 Code reorg 3 years ago
ravi_mirjit.h issue #204 Code reorg 3 years ago
ravi_nojit.c issue #204 Code reorg 3 years ago
ravi_profile.c issue #204 Code reorg 3 years ago
ravi_profile.h issue #204 Code reorg 3 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

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

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

## JIT Implementations

* ravi_jit.c - Ravi JIT API definition

Some 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.