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_ptr_nonzero(self, box):
        self.execute(rop.OONONNULL, box)
 
    @arguments("box")
    def opimpl_ptr_iszero(self, box):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/x86/regalloc.py   plexnet(Download)
    def can_optimize_cmp_op(self, op, i, operations):
        if not (op.is_comparison() or op.opnum == rop.OOISNULL or
                op.opnum == rop.OONONNULL):
            return False
        if (operations[i + 1].opnum != rop.GUARD_TRUE and

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/optimizeopt.py   plexnet(Download)
    def optimize_OOISNOT(self, op):
        self._optimize_oois_ooisnot(op, True, rop.OONONNULL)
 
    def optimize_OOIS(self, op):
        self._optimize_oois_ooisnot(op, False, rop.OOISNULL)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/test/runner_test.py   plexnet(Download)
        r = self.execute_operation(rop.OOISNULL, [u1_box], 'int')
        assert r.value == 0
        r = self.execute_operation(rop.OONONNULL, [u2_box], 'int')
        assert r.value == 1
        #
        r = self.execute_operation(rop.OOISNULL, [null_box], 'int')
        assert r.value == 1
        r = self.execute_operation(rop.OONONNULL, [null_box], 'int')
        assert r.value == 0
 
        r = self.execute_operation(rop.OOISNULL, [BoxInt(v)], 'int')
        assert r.value == 0
        r = self.execute_operation(rop.OONONNULL, [BoxInt(v)], 'int')
        assert r.value == 1
        lltype.free(x, flavor='raw')

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/test/test_random.py   plexnet(Download)
                    v, S = r.choice(self.ptrvars)
                if r.random() < 0.5:
                    v = self.do(rop.OONONNULL, [v])
                else:
                    v = self.do(rop.OOISNULL, [v])

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/x86/test/test_runner.py   plexnet(Download)
    def test_nullity_with_guard(self):
        allops = [rop.OONONNULL, rop.OOISNULL, rop.INT_IS_TRUE]
        guards = [rop.GUARD_TRUE, rop.GUARD_FALSE]
        p = lltype.cast_opaque_ptr(llmemory.GCREF,
                                   lltype.malloc(lltype.GcStruct('x')))