Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/pyjitpl.py   plexnet(Download)
    def opimpl_getlistitem_gc(self, listbox, itemsdescr, arraydescr, indexbox):
        arraybox = self.metainterp.execute_and_record(rop.GETFIELD_GC,
                                                      itemsdescr, listbox)
        self.execute_with_descr(rop.GETARRAYITEM_GC, arraydescr, arraybox, indexbox)
 
    @arguments("box", "descr", "descr", "box", "box")
    def opimpl_setlistitem_gc(self, listbox, itemsdescr, arraydescr, indexbox,
                              valuebox):
        arraybox = self.metainterp.execute_and_record(rop.GETFIELD_GC,
            # the index is < 0; add the array length to it
            lenbox = self.metainterp.execute_and_record(
                rop.GETFIELD_GC, lengthdesc, listbox)
            indexbox = self.metainterp.execute_and_record(
                rop.INT_ADD, None, indexbox, lenbox)
    def opimpl_getfield_gc(self, box, fielddesc):
        self.execute_with_descr(rop.GETFIELD_GC, fielddesc, box)
    @arguments("box", "descr")
    def opimpl_getfield_gc_pure(self, box, fielddesc):
        self.execute_with_descr(rop.GETFIELD_GC_PURE, fielddesc, box)
    def opimpl_getfield_vable(self, pc, basebox, index):
        if self._nonstandard_virtualizable(pc, basebox):
            self.execute_with_descr(rop.GETFIELD_GC, self._get_virtualizable_field_descr(index), basebox)
            return
        self.metainterp.check_synchronized_virtualizable()

src/s/y/Sypy-HEAD/jit/metainterp/pyjitpl.py   Sypy(Download)
            # the index is < 0; add the array length to it
            lenbox = self.metainterp.execute_and_record(
                rop.GETFIELD_GC, lengthdescr, listbox)
            indexbox = self.metainterp.execute_and_record(
                rop.INT_ADD, None, indexbox, lenbox)
    def _opimpl_getfield_gc_any(self, box, fielddescr):
        return self._opimpl_getfield_gc_any_pureornot(
                rop.GETFIELD_GC, box, fielddescr)
    opimpl_getfield_gc_i = _opimpl_getfield_gc_any
    opimpl_getfield_gc_r = _opimpl_getfield_gc_any
            # corresponds to what the cache thinks the value is
            resbox = executor.execute(self.metainterp.cpu, self.metainterp,
                                      rop.GETFIELD_GC, fielddescr, box)
            return tobox
        resbox = self.execute_with_descr(opnum, fielddescr, box)
        # quasi-immutable will have no effect, and instead it will work as a
        # regular, probably virtual, structure.
        mutatebox = self.execute_with_descr(rop.GETFIELD_GC,
                                            mutatefielddescr, box)
        if mutatebox.nonnull():
            for k in range(vinfo.num_arrays):
                descr = vinfo.array_field_descrs[k]
                abox = self.execute_and_record(rop.GETFIELD_GC, descr, vbox)
                descr = vinfo.array_descrs[k]
                for j in range(vinfo.get_array_length(virtualizable, k)):

src/s/y/Sypy-HEAD/jit/metainterp/heapcache.py   Sypy(Download)
        # GETFIELD_GC, MARK_OPAQUE_PTR, PTR_EQ, and PTR_NE don't escape their
        # arguments
        elif (opnum != rop.GETFIELD_GC and
              opnum != rop.MARK_OPAQUE_PTR and
              opnum != rop.PTR_EQ and

src/s/y/Sypy-HEAD/jit/metainterp/optimizeopt/heap.py   Sypy(Download)
                        optimizer.make_constant(newresult, result)
                        result = newresult
                    getop = ResOperation(rop.GETFIELD_GC, [op.getarg(0)],
                                         result, op.getdescr())
                    shortboxes.add_potential(getop, synthetic=True)

src/s/y/Sypy-HEAD/jit/metainterp/compile.py   Sypy(Download)
        box = inputargs[i]
        extra_ops.append(
            ResOperation(rop.GETFIELD_GC, [vable_box], box, descr))
        i += 1
    arrayindex = 0
        arraybox = BoxPtr()
        extra_ops.append(
            ResOperation(rop.GETFIELD_GC, [vable_box], arraybox, descr))
        arraydescr = vinfo.array_descrs[arrayindex]
        assert i + arraylen <= len(inputargs)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/cli/method.py   plexnet(Download)
    def _collect_types(self, operations, box2classes):
        for op in operations:
            if op.opnum in (rop.GETFIELD_GC, rop.SETFIELD_GC):
                box = op.args[0]
                descr = op.descr

src/s/y/Sypy-HEAD/jit/backend/cli/method.py   Sypy(Download)
    def _collect_types(self, operations, box2classes):
        for op in operations:
            if op.getopnum() in (rop.GETFIELD_GC, rop.SETFIELD_GC):
                box = op.args[0]
                descr = op.getdescr()

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/specnode.py   plexnet(Download)
    def extract_runtime_data(self, cpu, valuebox, resultlist):
        from pypy.jit.metainterp import executor, history, resoperation
        for ofs, subspecnode in self.fields:
            assert isinstance(ofs, history.AbstractDescr)
            fieldbox = executor.execute(cpu, resoperation.rop.GETFIELD_GC,

src/s/y/Sypy-HEAD/jit/metainterp/quasiimmut.py   Sypy(Download)
    def get_current_constant_fieldvalue(self):
        from pypy.jit.metainterp import executor
        from pypy.jit.metainterp.resoperation import rop
        fieldbox = executor.execute(self.cpu, None, rop.GETFIELD_GC,
                                    self.fielddescr, self.structbox)

src/s/y/Sypy-HEAD/jit/backend/test/runner_test.py   Sypy(Download)
                                     'void', descr=fielddescr)
        assert res is None
        res = self.execute_operation(rop.GETFIELD_GC, [t_box],
                                     'int', descr=fielddescr)
        assert res.value == 39082
        self.execute_operation(rop.SETFIELD_GC, [t_box, BoxInt(1331)],
                               'void', descr=shortdescr)
        res = self.execute_operation(rop.GETFIELD_GC, [t_box],
                                     'int', descr=fielddescr2)
        assert res.value == 250
        res = self.execute_operation(rop.GETFIELD_GC, [t_box],
                                     'int', descr=fielddescr1)
        assert res.value == 133
        res = self.execute_operation(rop.GETFIELD_GC, [t_box],
                                     'void', descr=fielddescr2)
        assert res is None
        res = self.execute_operation(rop.GETFIELD_GC, [t_box],
                                     'ref', descr=fielddescr2)
        assert res.value == u_box.value

  1 | 2  Next