Commit Graph

1078 Commits (master)

Author SHA1 Message Date
Dibyendu Majumdar 2eb4daf7ff issue #192 when searching for values in table use raw key comparison; back ported from Lua 5.4
4 years ago
Dibyendu Majumdar d2b9810a06 issue #193 Lua 5.4 string library improvements back-ported
4 years ago
Dibyendu Majumdar a2e0c2fc3d issue #191 #193 backport random number generator from Lua 5.4
4 years ago
Dibyendu Majumdar 5f286815ed issue #169 Update to latest MIR code
4 years ago
Dibyendu Majumdar a8ee5a60e1 issue #99 LLVM JIT updates to support RaviArray breakout from Table structure
4 years ago
Dibyendu Majumdar f3886accbe issue #99 remove blank
4 years ago
Dibyendu Majumdar e16310f742 issue #99 Fix missing field in GCUnion
4 years ago
Dibyendu Majumdar 4b34875605 issue #99 Use dedicated structure for Ravi array types
4 years ago
Dibyendu Majumdar eb3d9ca72d Merge branch 'master' of https://github.com/dibyendumajumdar/ravi
4 years ago
Dibyendu Majumdar a5759bbb25 issue #188
4 years ago
Dibyendu Majumdar 83e0a739b0 issue #188 add missing symbol
4 years ago
Dibyendu Majumdar 23141174d4 issue #169 Update to latest MIR codebase and set default opt level to 2
4 years ago
Dibyendu Majumdar 9202468bb7 issue #188 Fix missing symbol registrations
4 years ago
Dibyendu Majumdar 89b9451437 issue #188
4 years ago
Dibyendu Majumdar f5cc3fdfcf issue #175
4 years ago
Dibyendu Majumdar 4e53c74180 issue #175
4 years ago
Dibyendu Majumdar 3253283648 issue #186
4 years ago
Dibyendu Majumdar bcc094d953 issue #186
4 years ago
Dibyendu Majumdar 352f03ad61 issue #186
4 years ago
Dibyendu Majumdar 5834e4c78f issue #98 removing new parser code as migrated to ravi-compiler project
4 years ago
Dibyendu Majumdar bfaf2a3cef issue #163 improve codegen for binary op involving two floats when one is a constant
4 years ago
Dibyendu Majumdar 69d4b0dcfd issue #163 improve codegen for binary op involving two floats when one is a constant
4 years ago
Dibyendu Majumdar eae8eb971d issue #163 improve codegen for adding two integers when one is a constant
4 years ago
Dibyendu Majumdar 37a99ccfc8 issue #169 merge
4 years ago
Dibyendu Majumdar b8af71583d issue #163 'defer' implementation now controlled via RAVI_DEFER_STATEMENT macro. This allows testing of performance with and without the 'defer' statement
4 years ago
Dibyendu Majumdar 5f4989fa68 issue #169 Update MIR to latest version
4 years ago
Dibyendu Majumdar 788cd0d92d issue #169 Update MIR to latest version
4 years ago
Dibyendu Majumdar ab9fb1f8fb issue #98 fix scoping of local vars
4 years ago
Dibyendu Majumdar 9dcaad872e issue #183 use ravi_writestring() instead of printf() to dump the bytecodes
4 years ago
Dibyendu Majumdar 606a5de5f9 issue #157 Update docs
4 years ago
Dibyendu Majumdar 84b4949aa9 issue #157 Cleanup some unwanted api functions that are really only for debugging
4 years ago
Dibyendu Majumdar ca0d65e786 issue #182
4 years ago
Dibyendu Majumdar ea5e34f447 issue #180 removing llvm lua api
4 years ago
Dibyendu Majumdar 7834343893 issue #179 removed ASMVM but it is available on asmvm branch
4 years ago
Dibyendu Majumdar fcae3d293a issue #169 fix wrong error message - found due to travis build failure
4 years ago
Dibyendu Majumdar fd65a803cb issue #169 fix wrong error message - found due to travis build failure
4 years ago
Dibyendu Majumdar 29d7bff586 issue #169 fix wrong error message - found due to travis build failure
4 years ago
Dibyendu Majumdar bf94ff65e8 issue #169 fix wrong error message - found due to travis build failure
4 years ago
Dibyendu Majumdar a12d049d42 issue #169 apply fixes from MIR project
4 years ago
Dibyendu Majumdar 544ee84c66 Merge branch 'master' of https://github.com/dibyendumajumdar/ravi
4 years ago
Dibyendu Majumdar 7f833faf61 Undo unintended reformatting
4 years ago
Dibyendu Majumdar 5a2f52a422 issue #175
4 years ago
Dibyendu Majumdar 76accd1930 Update copyright notices
4 years ago
Dibyendu Majumdar b57e778b55 issue #169 nan and inf literal generated by JIT C codegen, but these are not valid literals. Temporarily use macros to replace these but a better fix is needed
4 years ago
Dibyendu Majumdar 6308c1d929 issue #169 add missing opcode emits
4 years ago
Dibyendu Majumdar 6e62ff2351 formatting
4 years ago
Dibyendu Majumdar efccd8bd9f issue #169 add remaining opcodes
4 years ago
Dibyendu Majumdar e0ebac6d7a Reformat
4 years ago
Dibyendu Majumdar d0c95d16c9 issue #169 add support for int bit ops and unm op codes; however this has caused for num loop tests to fail where a string value is being used
4 years ago
Dibyendu Majumdar f92ef5084a Formatting
4 years ago
Dibyendu Majumdar 31824e2a9b issue #169 add op_defer support in JIT backend
4 years ago
Dibyendu Majumdar 2c13ac8ee8 Merge branch 'master' of https://github.com/dibyendumajumdar/ravi
4 years ago
Dibyendu Majumdar 6967c5d54b issue #169
4 years ago
Dibyendu Majumdar 803acc3d1d issue #171
4 years ago
Dibyendu Majumdar 3e5df1fdb8 issue #171
4 years ago
Dibyendu Majumdar feae81c25f
Various updates
4 years ago
Dibyendu Majumdar 483569d8db issue #171 SETLIST is no longer an inline op code in the VM
4 years ago
Dibyendu Majumdar 8c6387facf issue #169 cleanup
4 years ago
Dibyendu Majumdar 1e85a5b37a issue #169 cleanups
4 years ago
Dibyendu Majumdar 9b477bf5fe issue #169 update to latest MIR interface
4 years ago
Dibyendu Majumdar 12eda8ca0d issue #163 fix bugs - wrong type associated with the LLVM definition of raviV_op_defer()
4 years ago
Dibyendu Majumdar aaee69bfd2 issue #163 fix bugs - in particular the offet of value in UpVal has changed
4 years ago
Dibyendu Majumdar 07a422eb74 issue #163 fixes related to loading of base following luaF_close
4 years ago
Dibyendu Majumdar 6f29bc6cd8 issue #163 add DEFER bytecode to LLVM backend
4 years ago
Dibyendu Majumdar 51eeb4e8c2 issue #163 simplify defer statement and fix memory leak
4 years ago
Dibyendu Majumdar edce55b997 issue #163 Base must be protected as luaF_close can now reallocate stack due to invocation of deferred functions
4 years ago
Dibyendu Majumdar 9a0ced9620 issue #163 First attempt to implement a Go like defer statement
4 years ago
Dibyendu Majumdar de42b8b0eb issue #98 some work work on type checking - table expressions, do while and repeat statements
4 years ago
Dibyendu Majumdar bdaa211faf Merge branch 'master' into mir
5 years ago
Dibyendu Majumdar 2e748fcefc issue #169
5 years ago
Dibyendu Majumdar 4727dd052a issue #170 Add support for LLVM 9
5 years ago
Dibyendu Majumdar 4e445f46bf issue #169 Add initial support for MIR JIT backend
5 years ago
Dibyendu Majumdar c3952c2b98 issue #98 add type conversion for some assignments
5 years ago
Dibyendu Majumdar e4f0b7aa1a issue #98 type check for statements
5 years ago
Dibyendu Majumdar 859eb75316 issue #98 type check for statements
5 years ago
Dibyendu Majumdar fecb13dbc2 issue #98 type check for statements
5 years ago
Dibyendu Majumdar db626e34c1 issue #98 type check for statements
5 years ago
Dibyendu Majumdar 99d9fcbdd2 issue #98 make the normal parser consistent with the new typechecker
5 years ago
Dibyendu Majumdar 6b5315366a issue #98 print type info for some more ast nodes
5 years ago
Dibyendu Majumdar 4ad83f8abf issue #98 typecheck expression statements
5 years ago
Dibyendu Majumdar 4c39afe84e issue #98 typecheck local stmt (incomplete)
5 years ago
Dibyendu Majumdar 5d03214477 issue #98 renaming of fields for consistency
5 years ago
Dibyendu Majumdar e2f91553b6 issue #98 more on suffixed expr typechecks
5 years ago
Dibyendu Majumdar cf7f4b33c0 issue #98 start to implement suffixed expr typechecks
5 years ago
Dibyendu Majumdar b2120b97cc issue #98 implement type checks for binary operators
5 years ago
Dibyendu Majumdar a5bfc25163 issue #98 split up the source for the AST parser to make it more workable
5 years ago
Dibyendu Majumdar 5b15a2ffce issue #164 try to get ORC v2 working
5 years ago
Dibyendu Majumdar 01e67ee61e issue #164 try to get ORC v2 working
5 years ago
Dibyendu Majumdar 58c0b2c8df issue #164 try to get ORC v2 working
5 years ago
Dibyendu Majumdar 5f8bf68a3e issue #164 simplify code as suggested by Lang Hames
5 years ago
Dibyendu Majumdar 529169d816 issue #126 fix seg fault due to attempt to remove a module was never added; also if env var RAVI_USE_DMRC_LLVM is set then enable dmrC based LLVM
5 years ago
Dibyendu Majumdar 9dfcd7c2b8 issue #126 add support for dmr_C based LLVM backend. Not enabled yet.
5 years ago
Dibyendu Majumdar b1396c8886 issue #114 experiment with for loop
5 years ago
Dibyendu Majumdar 2aa2515fe1 issue #164 optimizeModule() no longer static
5 years ago
Dibyendu Majumdar e1298a4e95 issue #164 trying our ORC v2 apis, but optimzation is broken so disable for now
5 years ago
Dibyendu Majumdar b163aab427 issue #164 added support for llvm 8.0.1
5 years ago
Dibyendu Majumdar 5ce7810402 issue #164 added support for llvm 8.0.1
5 years ago
Dibyendu Majumdar 1b45bcf320 issue #164 added support for llvm 8.0.1
5 years ago
Dibyendu Majumdar 58cc6cf5e5 issue #157 cleanup api for getting access to array raw data and revise the inline short string table lookup so that we have an inline part and a slow part
5 years ago
dibyendumajumdar 2672b86904 Merge branch 'master' of https://github.com/dibyendumajumdar/ravi
5 years ago
dibyendumajumdar 16f40a39f6 Fix gcc warning
5 years ago
Dibyendu Majumdar 16576517df issue #135 some restructuring
5 years ago
Dibyendu Majumdar 81b4b1fb35 doc updates and some minor reformatting
5 years ago
Dibyendu Majumdar 72b5dc551a issue #98 tiny bit of work in type checking - table expr
5 years ago
Dibyendu Majumdar fe3ca414f1 issue #98 tiny bit of work in type checking - table expr
5 years ago
Dibyendu Majumdar 93121f3afe issue #98 tiny bit of work in type checking, handle unary expr
5 years ago
dibyendumajumdar fe2632bad9 The simple makefile build should not enable assertions and ltests
5 years ago
Dibyendu Majumdar a92416f864 issue #98 fix compile error
5 years ago
Dibyendu Majumdar 3a98ffe3c2 issue #98 dump list of locals for each function, and start work on type checker
5 years ago
Dibyendu Majumdar f9c74b3b08 issue #98 fix bug in while parsing - remove extra endscope
5 years ago
Dibyendu Majumdar 2912415983 issue #98 fix parsing of consecutive labels
5 years ago
Dibyendu Majumdar e0b4d65402 issue #98 cleanup
5 years ago
Dibyendu Majumdar 83bcfcbed2 issue #98 add missing end_function() calls
5 years ago
Dibyendu Majumdar 2f85d6e8bc issue #98 reformat
5 years ago
Dibyendu Majumdar 06335d0d36 issue #98 cleanup
5 years ago
Dibyendu Majumdar 7385d76f12 issue #98 refactor scope and ast so that statement lists are no longer in scope
5 years ago
Dibyendu Majumdar 74e8c76f5a issue #98 fix bug - final return not handled correctly, and ensure on parser failure error message is pushed as a second value after nil
5 years ago
Dibyendu Majumdar 04b1885011 issue #98 redo upvalue implementation - wip
5 years ago
Dibyendu Majumdar abe4759bc7 issue #114 fix bug in handling of function call
5 years ago
Dibyendu Majumdar b95a2e7016 issue #98 Reformat using clangformat
5 years ago
Dibyendu Majumdar 01eb83dcfe issue #161 avoid taking address of math functions in the fast call scenario, instead assign unique codes to functions that may be inlined
5 years ago
dibyendumajumdar f057c79ccf issue #157
6 years ago
Dibyendu Majumdar d27dbd7619 issue #110
6 years ago
Dibyendu Majumdar e5b5ae9f05 issue #110
6 years ago
Dibyendu Majumdar ebff2906c7 issue #110
6 years ago
Dibyendu Majumdar ceeb4d86bf issue #110 update savedpc befaore function calls
6 years ago
Dibyendu Majumdar cb3f9282e5 issue #110 bug fix
6 years ago
Dibyendu Majumdar 08157b102c issue #157 rename bytecodes
6 years ago
Dibyendu Majumdar 5e552ab4a7 issue #157 more renaming of bytecodes
6 years ago
Dibyendu Majumdar 489e118012 issue #157 more renaming of bytecodes
6 years ago
Dibyendu Majumdar b65c595e05 issue #157 import from Lua 5.4 changes to the way number conversions are done in the VM to push string coersion down to string metamethods
6 years ago
Dibyendu Majumdar dd593cdcd5 issue #157 import from Lua 5.4 changes to the way number conversions are done in the VM to push string coersion down to string metamethods
6 years ago
Dibyendu Majumdar 21028d833b issue #157 more renaming of op codes
6 years ago
Dibyendu Majumdar 31f4e178ee issue #157 more opcode renaming
6 years ago
Dibyendu Majumdar fc6929aa58 issue #157 more opcode renaming
6 years ago
Dibyendu Majumdar edac3648f0 issue #158 import the string metamethods from 5.4
6 years ago
Dibyendu Majumdar 7041827d53 issue #157 rename the array get/set op codes
6 years ago
Dibyendu Majumdar eec9a49414 issue #157: rename GETTABLE_SK and SETTABLE_SK opcodes
6 years ago
Dibyendu Majumdar 04ca32e8f5 Remove the metatable api alternatives
6 years ago
Dibyendu Majumdar d4d679bb3c issue #156
6 years ago
Dibyendu Majumdar 2d646a0bde issue #110 Enable setting opt level
6 years ago
Dibyendu Majumdar 21427cf741 issue #98
6 years ago
Dibyendu Majumdar 478375f354 issue #98
6 years ago
Dibyendu Majumdar 1f1115eb06 issue #110 add more specific method calls for table set/get ops
6 years ago
Dibyendu Majumdar 5f4b94bed6 issue #110 dump C intermediate code if verbosity is on
6 years ago
Dibyendu Majumdar 3def57baf8 issue #110 option to inline some arithmetic ops
6 years ago
Dibyendu Majumdar 5d5d036fdc issue #110 more opcodes
6 years ago
Dibyendu Majumdar 3e1d1bc752 issue #110 add support for a few more op codes
6 years ago
Dibyendu Majumdar 31bb288c2c issue #98 rearrange code
6 years ago
Dibyendu Majumdar f6fc9b100b issue #98 rearrange code
6 years ago