annotate Jint.Runtime/VM2/Machine.cs @ 1:033ebe7432d5

vm v2
author cin
date Thu, 24 Oct 2013 19:45:57 +0400
parents
children 4aed85a1f558
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
cin
parents:
diff changeset
1 using System;
cin
parents:
diff changeset
2 using System.Collections.Generic;
cin
parents:
diff changeset
3
cin
parents:
diff changeset
4 namespace Jint.Runtime.VM2
cin
parents:
diff changeset
5 {
cin
parents:
diff changeset
6 public class Machine
cin
parents:
diff changeset
7 {
cin
parents:
diff changeset
8 RuntimeContext m_context;
cin
parents:
diff changeset
9 Stack<object[]> m_frames;
cin
parents:
diff changeset
10 object[] m_frame;
cin
parents:
diff changeset
11
cin
parents:
diff changeset
12
cin
parents:
diff changeset
13 public Machine ()
cin
parents:
diff changeset
14 {
cin
parents:
diff changeset
15 }
cin
parents:
diff changeset
16
cin
parents:
diff changeset
17 public void Execute(Instruction[] instructions) {
cin
parents:
diff changeset
18 foreach (var op in instructions) {
cin
parents:
diff changeset
19
cin
parents:
diff changeset
20 }
cin
parents:
diff changeset
21 }
cin
parents:
diff changeset
22
cin
parents:
diff changeset
23 private object[] MakeArgs(int[] regs) {
cin
parents:
diff changeset
24 object[] args = new object[regs.Length];
cin
parents:
diff changeset
25 for (int i=0; i< regs.Length; i++)
cin
parents:
diff changeset
26 args = m_frame [regs [i]];
cin
parents:
diff changeset
27 }
cin
parents:
diff changeset
28 }
cin
parents:
diff changeset
29 }
cin
parents:
diff changeset
30