Ejemplo n.º 1
0
 def __init__(self, nilObject, num_elements, method, context, previous_frame):
     Array.__init__(self, nilObject, num_elements)
     self._stack_pointer  = 0
     self._bytecode_index = 0
     self._local_offset   = 0
     self._method         = method
     self._context        = context
     self._previous_frame = previous_frame if previous_frame else nilObject
Ejemplo n.º 2
0
 def __init__(self, nilObject, num_elements, method, context,
              previous_frame):
     Array.__init__(self, nilObject, num_elements)
     self._stack_pointer = 0
     self._bytecode_index = 0
     self._local_offset = 0
     self._method = method
     self._context = context
     self._previous_frame = previous_frame if previous_frame else nilObject
Ejemplo n.º 3
0
    def __init__(self, nilObject, num_literals, num_locals, max_stack_elements,
                 num_bytecodes, signature):
        Array.__init__(self, nilObject, num_literals)

        # Set the number of bytecodes in this method
        self._bytecodes              = array('b', [0] * num_bytecodes)
        self._inline_cache_class     = [None] * num_bytecodes
        self._inline_cache_invokable = [None] * num_bytecodes
        
        self._number_of_locals       = num_locals
        self._maximum_number_of_stack_elements = max_stack_elements
        self._set_signature(signature)