diff Jint.Runtime/VM/OpCodes/Codes.cs @ 3:aced2ae9957f

temp commit, new virtual machine concept (strongly typed version of VM2).
author cin
date Sun, 27 Oct 2013 17:23:25 +0400
parents 033ebe7432d5
children 1ae5b10f7a10
line wrap: on
line diff
--- a/Jint.Runtime/VM/OpCodes/Codes.cs	Fri Oct 25 15:52:16 2013 +0400
+++ b/Jint.Runtime/VM/OpCodes/Codes.cs	Sun Oct 27 17:23:25 2013 +0400
@@ -1,10 +1,32 @@
-using System;
-
-namespace Jint.Runtime
-{
-	public enum Codes: int
-	{
-		Add = 1
-	}
-}
-
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Jint.Runtime.VM.OpCodes {
+    enum Codes: int {
+        Noop = 0,
+        
+        Add,
+        Sub,
+        Div,
+        Mul,
+        
+        BAnd,
+        BOr,
+        BNot,
+        
+        LAnd,
+        LOr,
+        LNot,
+        
+        Gte,
+        Lte,
+        Gt,
+        Lt,
+        Eq,
+        Ne,
+
+        MaxOp
+    }
+}