Commit Graph

74 Commits (be65484febc5441576e6d49ea6c97eeabc74e44a)

Author SHA1 Message Date
Dibyendu Majumdar e4282fd3fd start refactoring the binop code generation
9 years ago
Dibyendu Majumdar 285d288be8 remove arithmatic operators that are redundant and add ADDIIRN operator for adding small int constant to register
9 years ago
Dibyendu Majumdar a02352a6f7 remove arithmatic operators that are redundant
9 years ago
Dibyendu Majumdar 60e7801170 add opcode ADDFIRN for adding float to small constant int
9 years ago
Dibyendu Majumdar 293fc96513 remove arithmatic operators that are redundant
9 years ago
Dibyendu Majumdar 966d6177cf remove arithmatic operators where constant folding would take care of it
9 years ago
bandhu 21bb3c8f86 more opcodes in VM for arrays
9 years ago
Dibyendu Majumdar 1702668eac vm changes to support arrays
9 years ago
Dibyendu Majumdar c4f96b8aca create enum of RAVI types
9 years ago
Dibyendu Majumdar 394bb6fde7 initialize typed local variables (int or double) to 0
9 years ago
Dibyendu Majumdar 69f2f16940 cleanup
9 years ago
dibyendumajumdar 8a94300518 fix warnings on Linux
9 years ago
Dibyendu Majumdar d46777e918 bug - getting confused by MOVE after OP_CLOSURE - need to investigate properfix - for now fix getlocvartype(0 to check that fs == fs->ls->fs
9 years ago
Dibyendu Majumdar ff30553186 revise debug messages and allow them to be enabled when env variable RAVI_DEBUG_EXPR is set; reorder opcodes to be contiguous, add luac to the build, and ensure luac can dump Ravi bytecode
9 years ago
Dibyendu Majumdar c4a646ba1e add MUL, SUB and DIV type specific op codes
9 years ago
Dibyendu Majumdar cf2638a431 add new opcodes for converting registers to specific types and use this for type conversion of function call return values in local variable declaration statements
9 years ago
Dibyendu Majumdar 53ea941231 add new opcodes for converting registers to specific types and use this for type conversion of function call return values in local variable declaration statements
9 years ago
Dibyendu Majumdar 0797f97ac0 add debug messages
9 years ago
Dibyendu Majumdar 949cd3562f add ability to determine an opcode type
9 years ago
Dibyendu Majumdar fcfcd0d1e1 revert to 32-bit bytecode
9 years ago
Dibyendu Majumdar ba0d7e5302 add operators eq, lt, le
9 years ago
Dibyendu Majumdar 2395683d35 add OP_RAVI and extension 64-bit instructions
9 years ago
Dibyendu Majumdar e3f457b645 initial checkin of opcode UNMF
9 years ago
Dibyendu Majumdar 9bf704a4d3 initial import
9 years ago