Browse Source

Make read_userroot a JIT intrinsic

jonathanvdc 8 years ago
parent
commit
8fe8b5b994
1 changed files with 7 additions and 0 deletions
  1. 7 0
      kernel/modelverse_jit/intrinsics.py

+ 7 - 0
kernel/modelverse_jit/intrinsics.py

@@ -205,6 +205,13 @@ MISC_INTRINSICS = {
             tree_ir.LoadLocalInstruction(jit.KWARGS_PARAMETER_NAME),
             tree_ir.LiteralInstruction('root')),
 
+    # # read_userroot
+    'read_userroot' :
+        lambda:
+        tree_ir.LoadIndexInstruction(
+            tree_ir.LoadLocalInstruction(jit.KWARGS_PARAMETER_NAME),
+            tree_ir.LiteralInstruction('user_root')),
+
     # Dictionary operations
     'dict_read' :
         lambda a, b: