Did I find the right examples for you? yes no

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

src/s/y/Sypy-HEAD/interpreter/astcompiler/assemble.py   Sypy(Download)
    def load_const(self, obj):
        index = self.add_const(obj)
        self.emit_op_arg(ops.LOAD_CONST, index)
 
    def update_position(self, lineno, force=False):
    ops.STORE_DEREF : -1,
 
    ops.LOAD_CONST : 1,
 
    ops.IMPORT_STAR : -1,

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/interpreter/astcompiler/assemble.py   plexnet(Download)
    def load_const(self, obj, w_key=None):
        index = self.add_const(obj, w_key)
        self.emit_op_arg(ops.LOAD_CONST, index)
 
    def update_position(self, lineno, force=False):
    ops.STORE_DEREF : -1,
 
    ops.LOAD_CONST : 1,
 
    ops.IMPORT_STAR : -1,

src/s/y/Sypy-HEAD/module/sys/vm.py   Sypy(Download)
    if (ord(co[p]) == stdlib_opcode.CALL_FUNCTION or
        ord(co[p]) == stdlib_opcode.CALL_METHOD):
        if ord(co[p+3]) == stdlib_opcode.LOAD_CONST:
            lo = ord(co[p+4])
            hi = ord(co[p+5])
                    if constant <= 2:
                        need_all_three_args = False
                elif (ord(co[p+6]) == stdlib_opcode.LOAD_CONST and
                      ord(co[p+9]) == stdlib_opcode.SLICE+3):
                    lo = ord(co[p+7])

src/s/y/Sypy-HEAD/interpreter/astcompiler/test/test_compiler.py   Sypy(Download)
        """
        counts = self.count_instructions(source)
        assert counts == {ops.LOAD_CONST: 1, ops.RETURN_VALUE: 1}
 
        source = """def f():
        counts = self.count_instructions(source)
        if 0:   # xxx later?
            assert counts == {ops.LOAD_CONST: 1, ops.RETURN_VALUE: 1}
 
        # getitem outside of the BMP should not be optimized
        source = """def f():
        return u"\U00012345"[0]
        """
        counts = self.count_instructions(source)
        assert counts == {ops.LOAD_CONST: 2, ops.BINARY_SUBSCR: 1,
        """
        counts = self.count_instructions(source)
        assert counts == {ops.LOAD_CONST: 2, ops.BINARY_SUBSCR: 1,
                          ops.RETURN_VALUE: 1}
 
        counts = self.count_instructions(source)
        if 0:   # xxx later?
            assert counts == {ops.LOAD_CONST: 1, ops.RETURN_VALUE: 1}
        monkeypatch.undo()