Give LFunctions a vm property

Localize instructions and reg from frame

Split LVM.run() into LVM.call()/LVM.run()

Implement OP_TEST and OP_JMP

Implement OP_LOADBOOL

Initialise all stack slots to nil when calling a chunk

Allow LValues with a value of 'false' to be create (it was converted to 'null')

Implement OP_SELF

Fix for error handling to handle string exceptions

OP_FORPREP, OP_FORLOOP: Support for numerical for loops

Instantiate a new LValue in OP_LOADK, otherwise "constants" aren't so constant...

Fix off-by-one in calculating the value of sBx

Print sBx field in bytecode dump (for debugging)

Couple of fixes for last commit

(0) -14 +14 +100 tip

mercurial