示例#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]
示例#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
 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
 def __init__(self, obj_class):
     AbstractObject.__init__(self)
     self._class = obj_class