summaryrefslogtreecommitdiffstats
path: root/src/back/tac.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/back/tac.py')
-rw-r--r--src/back/tac.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/back/tac.py b/src/back/tac.py
index bff5944..20b14d9 100644
--- a/src/back/tac.py
+++ b/src/back/tac.py
@@ -37,7 +37,8 @@ Op.GT = Op("GT") # x = !Z && !N
Op.BEZ = Op("BEZ") # if x == 0 goto y
Op.JMP = Op("JMP") # goto x
-Op.PARAM = Op("PARAM") # param x
+Op.PUSH = Op("PUSH") # push x
+Op.POP = Op("POP") # pop x
Op.CALL = Op("CALL") # call x return in y
Op.RETURN = Op("RETURN") # return x
@@ -59,9 +60,13 @@ class Label(object):
def __repr__(self):
return "<Label, name: %s>" % self.name
-class FunctionLabel(Label):
+class FunctionPrologue(Label):
def __repr__(self):
- return "<FunctionLabel, name: %s>" % self.name
+ return "<FunctionPrologue, name: %s>" % self.name
+
+class FunctionEpilogue(Label):
+ def __repr__(self):
+ return "<FunctionEpilogue, name: %s>" % self.name
class TACList(object):
__shared_state = {}