summaryrefslogtreecommitdiff
path: root/python/types.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2017-11-27 17:15:03 -0500
committerPeter LaFosse <peter@vector35.com>2018-03-23 17:10:05 -0400
commitf2e43b0fdcf5e24399917ffb25ff174c6921a484 (patch)
tree8334f457621e16ab77513c30aaa2c3a5113e0129 /python/types.py
parent092faaff9b3868c8f8eeab13f4506968be6546d1 (diff)
Register stack adjustments in calling conventions
Diffstat (limited to 'python/types.py')
-rw-r--r--python/types.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/python/types.py b/python/types.py
index 2557db2c..d44cc736 100644
--- a/python/types.py
+++ b/python/types.py
@@ -680,6 +680,21 @@ class SizeWithConfidence(object):
return self.value
+class RegisterStackAdjustmentWithConfidence(object):
+ def __init__(self, value, confidence = max_confidence):
+ self.value = value
+ self.confidence = confidence
+
+ def __str__(self):
+ return str(self.value)
+
+ def __repr__(self):
+ return repr(self.value)
+
+ def __int__(self):
+ return self.value
+
+
class RegisterSet(object):
def __init__(self, reg_list, confidence = max_confidence):
self.regs = reg_list