Exemplo n.º 1
0
 def __init__(self, method, context_values):
     AbstractObject.__init__(self)
     self._method         = method
     self._outer_rcvr     = context_values[0]
     self._outer_args     = context_values[1]
     self._outer_tmps     = context_values[2]
     self._outer_on_stack = context_values[3]
Exemplo n.º 2
0
 def __init__(self, signature_string, universe, invoke, is_empty=False):
     AbstractObject.__init__(self)
     
     self._signature = universe.symbol_for(signature_string)
     self._invoke    = invoke
     self._is_empty  = is_empty
     self._holder    = None
Exemplo n.º 3
0
    def __init__(self, signature_string, universe, prim_fn, is_empty=False):
        AbstractObject.__init__(self)

        self._signature = universe.symbol_for(signature_string)
        self._prim_fn   = prim_fn
        self._is_empty  = is_empty
        self._holder    = None
        self._universe  = universe
Exemplo n.º 4
0
 def __init__(self, signature_string, universe, prim_fun, is_empty = False):
     AbstractObject.__init__(self)
     
     self._signature = universe.symbol_for(signature_string)
     self._prim_fun  = prim_fun
     self._is_empty  = is_empty
     self._holder    = None
     self._universe  = universe
Exemplo n.º 5
0
    def __init__(self, signature, invokable, embedded_block_methods, universe):
        AbstractObject.__init__(self)

        self._signature = signature
        self._invokable = invokable

        self._embedded_block_methods = embedded_block_methods
        self._universe = universe

        self._holder = None
Exemplo n.º 6
0
    def __init__(self, signature, invokable, embedded_block_methods, universe):
        AbstractObject.__init__(self)

        self._signature    = signature
        self._invokable    = invokable

        self._embedded_block_methods = embedded_block_methods
        self._universe = universe

        self._holder   = None
Exemplo n.º 7
0
    def __init__(self, literals, num_locals, max_stack_elements,
                 num_bytecodes, signature):
        AbstractObject.__init__(self)

        # Set the number of bytecodes in this method
        self._bytecodes              = ["\x00"] * num_bytecodes
        self._inline_cache_class     = [None]   * num_bytecodes
        self._inline_cache_invokable = [None]   * num_bytecodes
        
        self._literals               = literals
        
        self._number_of_locals       = num_locals
        self._maximum_number_of_stack_elements = max_stack_elements
        self._signature = signature
        
        self._holder = None
Exemplo n.º 8
0
    def __init__(self, literals, num_locals, max_stack_elements, num_bytecodes,
                 signature):
        AbstractObject.__init__(self)

        # Set the number of bytecodes in this method
        self._bytecodes = ["\x00"] * num_bytecodes
        self._inline_cache_class = [None] * num_bytecodes
        self._inline_cache_invokable = [None] * num_bytecodes

        self._literals = literals

        self._number_of_locals = num_locals
        self._maximum_number_of_stack_elements = max_stack_elements
        self._signature = signature

        self._holder = None
Exemplo n.º 9
0
 def __init__(self, method, context):
     AbstractObject.__init__(self)
     self._method  = method
     self._context = context
Exemplo n.º 10
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     assert isinstance(value, float)
     self._embedded_double = value
Exemplo n.º 11
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     self._string = value
     self._number_of_signature_arguments = self._determine_number_of_signature_arguments() # updated later
Exemplo n.º 12
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     assert isinstance(value, float)
     self._embedded_double = value
Exemplo n.º 13
0
 def __init__(self, method, context):
     AbstractObject.__init__(self)
     self._method  = method
     self._context = context
Exemplo n.º 14
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     assert isinstance(value, int)
     self._embedded_integer = value
Exemplo n.º 15
0
 def __init__(self, frame):
     AbstractObject.__init__(self)
     assert isinstance(frame, Frame)
     self._frame = frame
Exemplo n.º 16
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     self.char = value
Exemplo n.º 17
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     self._string = value
Exemplo n.º 18
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     self._embedded_integer = value
Exemplo n.º 19
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     self._string = value
     self._number_of_signature_arguments = self._determine_number_of_signature_arguments() # updated later
Exemplo n.º 20
0
 def __init__(self, nilObject, number_of_indexable_fields):
     AbstractObject.__init__(self)
     
     # Private array of indexable fields
     self._indexable_fields = [nilObject] * number_of_indexable_fields
Exemplo n.º 21
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     self._string = value
Exemplo n.º 22
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     assert isinstance(value, int)
     self._embedded_integer = value
Exemplo n.º 23
0
 def __init__(self, obj_class):
     AbstractObject.__init__(self)
     self._class = obj_class