Commits

Maciej Fijalkowski committed ddb0c8e

better I think

Comments (0)

Files changed (2)

pypy/jit/codewriter/jtransform.py

             assert isinstance(v_inst.concretetype.TO, lltype.GcArray)
             STRUCT = v_inst.concretetype.TO.OF
             assert isinstance(STRUCT, lltype.Struct)
-            sizedescr = self.cpu.sizeof(STRUCT)
+            arraydescr = self.cpu.arraydescrof(v_inst.concretetype.TO)
             fielddescr = self.cpu.fielddescrof(STRUCT, c_field.value)
-            args = [v_inst, v_index, sizedescr, fielddescr]
+            args = [v_inst, v_index, arraydescr, fielddescr]
             return SpaceOperation('getinteriorfield', args, op.result)
 
     def rewrite_op_setinteriorfield(self, op):

pypy/jit/codewriter/test/test_jtransform.py

                         v_result)
     op1 = Transformer(FakeCPU()).rewrite_operation(op)
     assert op1.opname == 'getinteriorfield'
-    assert op1.args == [v, i, ('sizedescr', DICT.OF),
+    assert op1.args == [v, i, ('arraydescr', DICT),
                         ('fielddescr', DICT.OF, 'v')]
 
 def test_str_setinteriorfield():
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 ProjectModifiedEvent.java.
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.