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 a15d7e95 authored by Stefan Marr's avatar Stefan Marr
Browse files

RPython doesn't like integer indexed dicts, replaced by plain tuples



I guess that was the problem, but I also changed the sentinel object into a magic int
Signed-off-by: default avatarStefan Marr <git@stefan-marr.de>
parent a82e12f7
......@@ -22,42 +22,42 @@ class Bytecodes(object):
_num_bytecodes = 16
_bytecode_length = {halt : 1,
dup : 1,
push_local : 3,
push_argument : 3,
push_field : 2,
push_block : 2,
push_constant : 2,
push_global : 2,
pop : 1,
pop_local : 3,
pop_argument : 3,
pop_field : 2,
send : 2,
super_send : 2,
return_local : 1,
return_non_local : 1 }
_bytecode_length = ( 1, # halt
1, # dup
3, # push_local
3, # push_argument
2, # push_field
2, # push_block
2, # push_constant
2, # push_global
1, # pop
3, # pop_local
3, # pop_argument
2, # pop_field
2, # send
2, # super_send
1, # return_local
1 ) # return_non_local
_stack_effect_depends_on_message = object()
_bytecode_stack_effect = {halt : 0,
dup : 1,
push_local : 1,
push_argument : 1,
push_field : 1,
push_block : 1,
push_constant : 1,
push_global : 1,
pop : -1,
pop_local : -1,
pop_argument : -1,
pop_field : -1,
send : _stack_effect_depends_on_message,
super_send : _stack_effect_depends_on_message,
return_local : 0,
return_non_local : 0 }
_stack_effect_depends_on_message = -1000 # chose a unresonable number to be recognizable
_bytecode_stack_effect = ( 0, # halt
1, # dup
1, # push_local
1, # push_argument
1, # push_field
1, # push_block
1, # push_constant
1, # push_global
-1, # pop
-1, # pop_local
-1, # pop_argument
-1, # pop_field
_stack_effect_depends_on_message, # send
_stack_effect_depends_on_message, # super_send
0, # return_local
0 ) # return_non_local
def bytecode_length(bytecode):
return Bytecodes._bytecode_length[bytecode]
......
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