예제 #1
0
파일: frame.py 프로젝트: Gabri3l/PySOM
 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
예제 #2
0
파일: frame.py 프로젝트: QDucasse/PySOM
 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
예제 #3
0
파일: method.py 프로젝트: QDucasse/PySOM
    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)