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 c91a4314 authored by John Zhang's avatar John Zhang
Browse files

add mu_ prefix to hint

parent 84f188bf
......@@ -255,8 +255,8 @@ class LL2MuMapper:
return mutype.MU_VOIDP # rtti is never used;
elif T is llmemory.GCREF.TO:
return mutype.MU_VOIDR # translate GCREF as ref<void>
elif 'render_ptr_as' in T.hints:
return T.hints['render_ptr_as']
elif 'mu_render_ptr_as' in T.hints:
return T.hints['mu_render_ptr_as']
if LLT.TO._gckind == 'gc':
cls = mutype.MuRef
......
......@@ -41,7 +41,7 @@ def test_map_type_opqptr():
ll2mu = LL2MuMapper()
assert ll2mu.map_type(lltype.Ptr(lltype.RuntimeTypeInfo)) == mutype.MU_VOIDP
assert ll2mu.map_type(llmemory.GCREF) == mutype.MU_VOIDR
LL_META_CSTR = lltype.Ptr(lltype.GcOpaqueType("MuStr", hints={'render_ptr_as': mutype.META_CSTR}))
LL_META_CSTR = lltype.Ptr(lltype.GcOpaqueType("MuStr", hints={'mu_render_ptr_as': mutype.META_CSTR}))
assert ll2mu.map_type(LL_META_CSTR) == mutype.META_CSTR
def test_map_type_hybrid():
......
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