コード例 #1
0
ファイル: variables.py プロジェクト: imclab/StumpCompiler
	def __init__(self, name, initial_number = 0):
		Value.__init__(self, "GLOBAL_%s"%(name))
		
		self.constant = False
		self.volatile = False
		
		self.initial_number = initial_number
コード例 #2
0
ファイル: constant.py プロジェクト: imclab/StumpCompiler
    def __init__(self, number):
        # Name this constant automatically based on it's number.
        Value.__init__(self, "CONST_0x%x" % (number))

        self.constant = True
        self.volatile = False
        self.number = number
コード例 #3
0
ファイル: variables.py プロジェクト: imclab/StumpCompiler
	def __init__(self, name, location):
		Value.__init__(self, "VOLATILE_%s"%(name))
		
		self.constant = False
		self.volatile = True
		
		self.location = location
コード例 #4
0
ファイル: constant.py プロジェクト: imclab/StumpCompiler
	def __init__(self, number):
		# Name this constant automatically based on it's number.
		Value.__init__(self, "CONST_0x%x"%(number))
		
		self.constant = True
		self.volatile = False
		self.number   = number
コード例 #5
0
    def __init__(self, name, location):
        Value.__init__(self, "VOLATILE_%s" % (name))

        self.constant = False
        self.volatile = True

        self.location = location
コード例 #6
0
    def __init__(self, name, initial_number=0):
        Value.__init__(self, "GLOBAL_%s" % (name))

        self.constant = False
        self.volatile = False

        self.initial_number = initial_number
コード例 #7
0
ファイル: delete.py プロジェクト: leighpauls/opt_algos
 def __init__(self, end_node, prec, tree_index, linear_index):
     Value.__init__(self, end_node, prec, tree_index, linear_index)
コード例 #8
0
ファイル: variables.py プロジェクト: imclab/StumpCompiler
	def __init__(self, name):
		Value.__init__(self, "LOCAL_%s"%(name))
		
		self.constant = False
		self.volatile = False
コード例 #9
0
	def __init__(self, *args, **kwargs):
		Value.__init__(self, *args, **kwargs)
		
		self.constant = False
		self.volatile = False
		self.number   = None
コード例 #10
0
ファイル: insert.py プロジェクト: leighpauls/opt_algos
 def __init__(self, end_node, prec, tree_index, linear_index, val):
     Value.__init__(self, end_node, prec, tree_index, linear_index)
     self._value = val
コード例 #11
0
    def __init__(self, name):
        Value.__init__(self, "LOCAL_%s" % (name))

        self.constant = False
        self.volatile = False