コード例 #1
0
ファイル: push_store_inc.py プロジェクト: glennneiger/WazeWP7
    def __init__(self):
	Template.__init__(self,
			  [{"class" : PushInstruction},
			   {"class" : Istore},
			   {"class" : Iinc},
			   ]
			  )
コード例 #2
0
ファイル: jal_arguments.py プロジェクト: glennneiger/WazeWP7
 def __init__(self, n):
     Template.__init__(self, [{
         "class": PushInstruction
     }, {
         "class": Istore
     }] * n + [
         {
             "class": Iload
         },
         {
             "class": Iload
         },
         {
             "class": Iload
         },
         {
             "class": Iload
         },
         {
             "class": Iload
         },
         {
             "class": Invokestatic
         },
     ])
     self.n = n
コード例 #3
0
ファイル: double_stores.py プロジェクト: glennneiger/WazeWP7
    def __init__(self, n):
	pre = [{"class" : Istore}]
	mid = [{"class" : Instruction}]
	post = [{"class" : Istore}]
	out = pre + mid * n + post

	Template.__init__(self, out)
コード例 #4
0
    def __init__(self):
	Template.__init__(self,
			  [{"class" : Const},
			   {"class" : Istore},
			   {"class" : Aload},
			   ]
			  )
コード例 #5
0
ファイル: jal_return.py プロジェクト: glennneiger/WazeWP7
 def __init__(self, n, m):
     Template.__init__(self, [
         {
             "class": Getstatic
         },
         {
             "class": Istore
         },
         {
             "class": Istore
         },
     ] + [{
         "class": PushInstruction
     }, {
         "class": PopInstruction
     }] * n + [{
         "class": PushInstruction
     }] * m + [
         {
             "class": Invokestatic
         },
         {
             "class": Getstatic
         },
         {
             "class": Istore
         },
         {
             "class": Istore
         },
     ])
コード例 #6
0
ファイル: goto_next_line.py プロジェクト: NoamSheffer/WazeWP7
    def __init__(self):
	Template.__init__(self,
			  [{"class" : Goto},
			   {"class" : Label},
			   {"class" : Label},
			   ]
			  )
コード例 #7
0
ファイル: double_stores.py プロジェクト: glennneiger/WazeWP7
    def __init__(self):
	Template.__init__(self,
			  [{"class" : Istore},
			   {"class" : Iload},
			   {"class" : Putstatic},
			   {"class" : Iload},
			   {"class" : Ireturn},
			   ])
コード例 #8
0
ファイル: double_stores.py プロジェクト: glennneiger/WazeWP7
    def __init__(self):
	Template.__init__(self,
			  [{"class" : Istore},
			   {"class" : Iload},
			   {"class" : Iload},
			   {"class" : Instruction},
			   {"class" : Istore},
			   ]
			  )
コード例 #9
0
 def __init__(self):
     Template.__init__(self, [
         {
             "class": Putstatic
         },
         {
             "class": Getstatic
         },
     ])
コード例 #10
0
ファイル: double_pop.py プロジェクト: glennneiger/WazeWP7
 def __init__(self):
     Template.__init__(self, [
         {
             "class": Pop
         },
         {
             "class": Pop
         },
     ])
コード例 #11
0
ファイル: goto_next_line.py プロジェクト: glennneiger/WazeWP7
 def __init__(self):
     Template.__init__(self, [
         {
             "class": Goto
         },
         {
             "class": Label
         },
     ])
コード例 #12
0
ファイル: double_stores.py プロジェクト: glennneiger/WazeWP7
    def __init__(self, n, m):
	pre  = [{"class" : Istore}]
	mid1 = [{"class" : Instruction}]
	load = [{"class" : Iload}]
	mid2 = [{"class" : Instruction}]
	post = [{"class" : Istore}]

	out = pre + mid1 * n + load + mid2 * m + post
	self.midLoadIndex = n+1

	Template.__init__(self, out)
コード例 #13
0
 def __init__(self):
     Template.__init__(self, [
         {
             "class": Const
         },
         {
             "class": Istore
         },
         {
             "class": Aload
         },
     ])
コード例 #14
0
ファイル: jal_arguments.py プロジェクト: NoamSheffer/WazeWP7
    def __init__(self, n):
	Template.__init__(self,
			   [{"class" : PushInstruction}, {"class" : Istore}] * n +
			   [
			   {"class" : Iload},
			   {"class" : Iload},
			   {"class" : Iload},
			   {"class" : Iload},
			   {"class" : Invokestatic},
			   ]
			  )
	self.n = n
コード例 #15
0
ファイル: jal_return.py プロジェクト: NoamSheffer/WazeWP7
    def __init__(self, n, m):
	Template.__init__(self,
			  [
			   {"class" : Getstatic},
			   {"class" : Istore},
			   {"class" : Istore},
			   ] + [{"class" : PushInstruction}, {"class" : PopInstruction}] * n + [{"class" : PushInstruction}] * m + [
			   {"class" : Invokestatic},
			   {"class" : Getstatic},
			   {"class" : Istore},
			   {"class" : Istore},
			   ]
			  )
コード例 #16
0
ファイル: unused_label.py プロジェクト: NoamSheffer/WazeWP7
    def __init__(self):
	Template.__init__(self,
			  [{"class" : Label}]
			  )
コード例 #17
0
    def __init__(self):
	Template.__init__(self,
			  [{"class" : Getstatic},
			   {"class" : Pop2},
			   ]
			  )
コード例 #18
0
 def __init__(self):
     Template.__init__(self, [{"class": Label}])
コード例 #19
0
ファイル: double_pop.py プロジェクト: NoamSheffer/WazeWP7
    def __init__(self):
	Template.__init__(self,
			  [{"class" : Pop},
			   {"class" : Pop},
			   ]
			  )
コード例 #20
0
ファイル: double_stores.py プロジェクト: glennneiger/WazeWP7
    def __init__(self):
	pre = [{"class" : Istore}]
	post = [{"class" : Iload}]
	out = pre + post

	Template.__init__(self, out)
コード例 #21
0
ファイル: double_stores.py プロジェクト: glennneiger/WazeWP7
    def __init__(self):
	Template.__init__(self,
			  [{"class" : Dup},
			   {"class" : Istore},
			   {"class" : Ireturn},
			   ])