1.1 --- a/rsvp.py Fri May 01 01:02:20 2009 +0200
1.2 +++ b/rsvp.py Fri May 01 02:38:05 2009 +0200
1.3 @@ -540,12 +540,7 @@
1.4 self.frame_stack.extend([None] * self.operand)
1.5
1.6 def AdjustFrame(self):
1.7 - if self.operand > 0:
1.8 - self.frame_stack.append([None] * self.operand)
1.9 - elif self.operand == -1:
1.10 - self.invocation_sp_stack[-1] -= 1
1.11 - else:
1.12 - raise Exception, "AdjustFrame %r" % self.operand
1.13 + self.invocation_sp_stack[-1] += self.operand
1.14
1.15 def Return(self):
1.16 return self.pull_pc()
1.17 @@ -720,11 +715,15 @@
1.18
1.19 self.result = list, list
1.20
1.21 + def builtins_object_init(self):
1.22 + pass
1.23 +
1.24 native_functions = {
1.25 "__builtins__.int.__add__" : builtins_int_add,
1.26 "__builtins__.int.__bool__" : builtins_int_bool,
1.27 "__builtins__.bool.__bool__" : builtins_bool_bool,
1.28 "__builtins__.list" : builtins_list_new,
1.29 + "__builtins__.object.__init__" : builtins_object_init,
1.30 }
1.31
1.32 # vim: tabstop=4 expandtab shiftwidth=4