Implement OP_CALL for Lua functions (no return values yet)

Wed, 07 Apr 2010 03:06:46 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 07 Apr 2010 03:06:46 +0100
changeset 16
9c8710ea2a5a
parent 15
5240eaff785f
child 17
ac02246fc1d1

Implement OP_CALL for Lua functions (no return values yet)

lvm.js file | annotate | diff | comparison | revisions
--- a/lvm.js	Wed Apr 07 03:05:52 2010 +0100
+++ b/lvm.js	Wed Apr 07 03:06:46 2010 +0100
@@ -293,6 +293,8 @@
 				else
 				{
 					// Lua function
+					this.frame = {f:f,pc:0,reg:args};
+					this.callstack.push(this.frame);
 				}
 				break;
 			case OP_CLOSURE:

mercurial