1.1 --- a/rsvp.py Mon Aug 18 01:40:18 2008 +0200
1.2 +++ b/rsvp.py Mon Aug 18 01:45:23 2008 +0200
1.3 @@ -58,7 +58,7 @@
1.4
1.5 "A really simple virtual processor."
1.6
1.7 - def __init__(self, memory, objtable, paramtable, pc=None, debug=0):
1.8 + def __init__(self, memory, objtable, paramtable, clstable, pc=None, debug=0):
1.9
1.10 """
1.11 Initialise the processor with a 'memory' (a list of values containing
1.12 @@ -68,6 +68,7 @@
1.13 self.memory = memory
1.14 self.objtable = objtable
1.15 self.paramtable = paramtable
1.16 + self.clstable = clstable
1.17 self.pc = pc or 0
1.18 self.debug = debug
1.19
1.20 @@ -284,16 +285,14 @@
1.21
1.22 def CheckFrame(self): pass
1.23
1.24 + def CheckSelf(self): pass
1.25 +
1.26 def LoadCallable(self): pass
1.27
1.28 def LoadContext(self):
1.29 context, ref = self.value
1.30 self.push((None, context))
1.31
1.32 - def CheckSelf(self): pass
1.33 -
1.34 - def CheckContext(self): pass
1.35 -
1.36 def Return(self):
1.37 self.pc = self.pull_pc()
1.38