WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 748f4def authored by Stefan Marr's avatar Stefan Marr
Browse files

Removed incomplete implementation of invocation tracking

Signed-off-by: default avatarStefan Marr <git@stefan-marr.de>
parent 663c843e
......@@ -19,13 +19,6 @@ class Method(Array):
def __init__(self, nilObject, num_literals, num_locals, max_stack_elements,
num_bytecodes, signature):
Array.__init__(self, nilObject, num_literals)
self._receiver_class_table = []
self._invoked_methods = []
self._receiver_class_index = 0
self._invocation_count = 0
# Set the number of bytecodes in this method
self._bytecodes = ["\x00"] * num_bytecodes
......@@ -102,44 +95,12 @@ class Method(Array):
assert 0 <= value and value <= 255
self._bytecodes[index] = chr(value)
# TODO: remove these things
def increase_invocation_counter(self):
self._invocation_count += 1
# TODO: remove these things
def get_invocation_count(self):
return self._invocation_count
def invoke(self, frame, interpreter):
# Increase the invocation counter
self._invocation_count += 1
# Allocate and push a new frame on the interpreter stack
new_frame = interpreter.push_new_frame(self,
# TODO: remove these things
def get_receiver_class(self, index):
return self._receiver_class_table[index]
# TODO: remove these things
def get_invoked_method(self, index):
# return the last invoked method for a particular send
return self._invoked_methods[index]
# TODO: remove these things
def add_receiver_class_and_method(self, rcvr_class, invokable):
self._receiver_class_table.append(self._receiver_class_index, rcvr_class)
self._invoked_methods.append(self._receiver_class_index, invokable)
self._receiver_class_index += 1
return self._receiver_class_index - 1
# TODO: remove these things
def is_receiver_class_table_full(self):
return self._receiver_class_index == 255
def __str__(self):
return "Method(" + self.get_holder().get_name().get_string() + ">>" + str(self.get_signature()) + ")"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment