Daniel Roberts committed 56dc2fe

We now make it through rtyping, and rlib/test/ passes.

Comments (0)

Files changed (2)


     def rtype_simple_call(self, hop):
         [v] = hop.inputargs(self)
         v = hop.genop('jit_force_virtual', [v], resulttype = OBJECT)
-        #RESULTTYPE, ptr
         return hop.genop('oodowncast', [v], resulttype = hop.r_result)
     def convert_const(self, value):
                 r_green = hop.args_r[i]
                 v_green = hop.inputarg(r_green, arg=i)
-                if == 'ootypesystem':
-                    py.test.skip("lltype only")
+                #if == 'ootypesystem':
+                    #py.test.skip("lltype only")
                 objname, fieldname = name.split('.')   # see test_green_field
                 assert objname in driver.reds
                 i = kwds_i['i_' + objname]
                         "field %r not found in %r" % (name,
                     r_red = r_red.rbase
-                GTYPE = r_red.lowleveltype.TO
+                if == 'ootypesystem':
+                    GTYPE = r_red.lowleveltype
+                else:
+                    GTYPE = r_red.lowleveltype.TO
                 assert GTYPE._immutable_field(mangled_name), (
                     "field %r must be declared as immutable" % name)
                 if not hasattr(driver, 'll_greenfields'):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.