예제 #1
0
파일: block.py 프로젝트: SOM-st/RTruffleSOM
 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]
예제 #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
예제 #3
0
파일: primitive.py 프로젝트: cfbolz/RPySOM
 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
예제 #4
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]
예제 #5
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
예제 #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
예제 #7
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
예제 #8
0
파일: method.py 프로젝트: cfbolz/RPySOM
    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
예제 #9
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
예제 #10
0
파일: integer.py 프로젝트: cfbolz/RPySOM
 def __init__(self, value):
     AbstractObject.__init__(self)
     self._embedded_integer = value
예제 #11
0
파일: block.py 프로젝트: cfbolz/RPySOM
 def __init__(self, method, context):
     AbstractObject.__init__(self)
     self._method  = method
     self._context = context
예제 #12
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     self._string = value
     self._number_of_signature_arguments = self._determine_number_of_signature_arguments() # updated later
예제 #13
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     assert isinstance(value, float)
     self._embedded_double = value
예제 #14
0
파일: symbol.py 프로젝트: cfbolz/RPySOM
 def __init__(self, value):
     AbstractObject.__init__(self)
     self._string = value
     self._number_of_signature_arguments = self._determine_number_of_signature_arguments() # updated later
예제 #15
0
 def __init__(self, method, context):
     AbstractObject.__init__(self)
     self._method  = method
     self._context = context
예제 #16
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     assert isinstance(value, int)
     self._embedded_integer = value
예제 #17
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     self._string = value
예제 #18
0
파일: string.py 프로젝트: SOM-st/RPySOM
 def __init__(self, value):
     AbstractObject.__init__(self)
     self._string = value
예제 #19
0
 def __init__(self, frame):
     AbstractObject.__init__(self)
     assert isinstance(frame, Frame)
     self._frame = frame
예제 #20
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     self.char = value
예제 #21
0
파일: array.py 프로젝트: cfbolz/RPySOM
 def __init__(self, nilObject, number_of_indexable_fields):
     AbstractObject.__init__(self)
     
     # Private array of indexable fields
     self._indexable_fields = [nilObject] * number_of_indexable_fields
예제 #22
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     assert isinstance(value, float)
     self._embedded_double = value
예제 #23
0
 def __init__(self, value):
     AbstractObject.__init__(self)
     assert isinstance(value, int)
     self._embedded_integer = value
예제 #24
0
 def __init__(self, obj_class):
     AbstractObject.__init__(self)
     self._class = obj_class