Releases: Nafees10/navm
Releases · Nafees10/navm
version 1.1.4
Changes:
- Added
NaBytecode.addInstruction(string instName)
- Added 4 new instructions for
isLesser
andisLesserSame
for integer and double
version 1.1.3
Changes
- Jump position can be placed at end of bytecode
version 1.1.2
Changes:
*. Using NaBytecode
outside NaVM
was not possible due to _instructionTable
having no public access. Fixed, NaVM.instructionTable
returns a copy of instruction table.
version 1.1.1
Changes:
- Added
NaVM.clearStack
to pop all elements from stack NaVM.execute()
no longer clears stack before and after execution, and does not return anything:
NaVM class is intended to be inherited and extended by adding new instructions, it would be better for the returning data and passing arguments system to be implemented in inherited class.
version 1.1.0
Changes:
jumpBack
instruction restores stack peek to where it was beforejumpFrame
- demo configuration now has a
printDebug
instruction - bug fix in NaVM.execute where it always started from instruction[0] rather than at index
version 1.0.1
Changes
- Bug fixes in
NaBytecode.resolve()
, now calling it multiple times will not mess with jump instructions - removed
isSameAraryRef
andterminate
are gone - updated
isSameArray
instruction - Added spec for NaData
version 1.0.0
Changes:
- Changed how arrays are stored, so NaData is 8 bytes (or 4 on 32bit builds) rather than 16
- Most of array instructions are gone, or changed, use
incRef
andderef
/writeToRef
to read/write to arrays. - Made it easier to add new instructions
- Dividing byte code into functions is gone, its all just 1 byte code.
- Added concept of stack frames, along with jump instructions for it, so what was done with functions is still possible
- More changes, see
spec/*.md
version 0.9.0 beta1
Big changes, see spec/*.md
for details
version 0.2.4
Changes:
- Added a function type "onLoad" that can be used to initialize stuff in byte code
- Added instructions to add support for global variables
version 0.2.3
Changes:
- Bug fix: can now write negative numbers in instruction arguments, wasn't previously possible due to bug in utils package