PageRenderTime 1682ms queryTime 168ms sortTime 1ms getByIdsTime 821ms findMatchingLines 606ms

35+ results for 'f_lasti' (1682 ms)

Not the results you expected?
utils.py https://bitbucket.org/Liosan/gizapi.git | Python | 220 lines
                    
89  elif frame:
                    
90    if frame.f_lasti < 0:
                    
91      prefix = 'initial generator '
                    
                
stack.py http://pydbgr.googlecode.com/svn/trunk/ | Python | 254 lines
                    
126    linestarts = dict(dis.findlinestarts(co))
                    
127    inst       = f_back.f_lasti
                    
128    while inst >= 0:
                    
                
test_zzpickle_and_slow.py https://bitbucket.org/rokujyouhitoma/pypy/ | Python | 485 lines
                    
182        assert f1.f_exc_value is f2.f_exc_value
                    
183        assert f1.f_lasti == f2.f_lasti
                    
184        assert f1.f_lineno == f2.f_lineno
                    
                
inspect.py https://bitbucket.org/pypy/pypy/ | Python | 1066 lines
                    
201        f_globals       global namespace seen by this frame
                    
202        f_lasti         index of last attempted instruction in bytecode
                    
203        f_lineno        current line number in Python source code
                    
                
iofuncs.py https://code.google.com/p/spyderlib/ | Python | 570 lines
                    
79        bytecode = frame.f_code.co_code
                    
80        instruction = bytecode[frame.f_lasti + 3]
                    
81        instruction = ord(instruction) if PY2 else instruction
                    
                
skip.py http://pydbgr.googlecode.com/svn/trunk/ | Python | 92 lines
                    
56        co = self.proc.curframe.f_code
                    
57        offset = self.proc.curframe.f_lasti
                    
58        if count is None: return False
                    
                
Tester.py git://pkgs.fedoraproject.org/python-4Suite-XML | Python | 494 lines
                    
48    line = code.co_firstlineno
                    
49    stopat = frame.f_lasti
                    
50    addr = 0
                    
                
bytecode.py http://pydbgr.googlecode.com/svn/trunk/ | Python | 126 lines
                    
29    code = frame.f_code.co_code
                    
30    if loc is None: loc = frame.f_lasti
                    
31    return op_at_code_loc(code, loc)
                    
                
__init__.py https://bitbucket.org/juricap/ompc/ | Python | 354 lines
                    
43    c = f.f_code
                    
44    i = f.f_lasti
                    
45    bytecode = c.co_code
                    
                
matpy.py https://bitbucket.org/juricap/ompc/ | Python | 827 lines
                    
79    c = f.f_code
                    
80    i = f.f_lasti
                    
81    bytecode = c.co_code
                    
96    # dis.disassemble_string(c.co_code)
                    
97    i = f.f_lasti
                    
98    bytecode = c.co_code
                    
                
coroutines.py https://bitbucket.org/hackersgame/lavinder-prototype.git | Python | 440 lines
                    
143    code = coro.gi_code
                    
144    assert frame.f_lasti >= 0
                    
145    offset = frame.f_lasti + 1
                    
182            caller = frame.f_back
                    
183            assert caller.f_lasti >= 0
                    
184            if caller.f_code.co_code[caller.f_lasti] != _YIELD_FROM:
                    
238            frame = getattr(gen, 'cr_frame', None)
                    
239        if frame is not None and frame.f_lasti == -1:
                    
240            msg = '%r was never yielded from' % self
                    
                
debug.py https://bitbucket.org/creiht/eventlet | Python | 128 lines
                    
36                    line = 'Unknown code named [%s].  VM instruction #%d' % (
                    
37                        frame.f_code.co_name, frame.f_lasti)
                    
38            if self.trace_names is None or name in self.trace_names:
                    
                
_utils.py https://bitbucket.org/jenshnielsen/oct2py | Python | 209 lines
                    
128    try:
                    
129        instruction = ord(bytecode[frame.f_lasti + 3])
                    
130    except TypeError:
                    
130    except TypeError:
                    
131        instruction = ord(chr(bytecode[frame.f_lasti + 3]))
                    
132    if instruction == dis.opmap['UNPACK_SEQUENCE']:
                    
133        try:
                    
134            howmany = ord(bytecode[frame.f_lasti + 4])
                    
135        except TypeError:
                    
135        except TypeError:
                    
136            howmany = ord(chr(bytecode[frame.f_lasti + 4]))
                    
137        return howmany
                    
                
line.py http://pydbgr.googlecode.com/svn/trunk/ | Python | 114 lines
                    
90                                       self.core.filename(filename))      
                    
91        msg2 = ('at instruction %d' % self.proc.curframe.f_lasti)
                    
92        if self.proc.event:
                    
                
bytecode_tracer.py https://bitbucket.org/alexandr_dragunkin/pythoscope.git | Python | 387 lines
                    
126def current_bytecode(frame):
                    
127    code = frame.f_code.co_code[frame.f_lasti:]
                    
128    op = ord(code[0])
                    
                
asynpool.py https://bitbucket.org/SashaSl/api2.git | Python | 1226 lines
                    
104    # gi_frame is None when generator stopped.
                    
105    return gen.gi_frame and gen.gi_frame.f_lasti == -1
                    
106
                    
                
test_loops.py https://bitbucket.org/SashaSl/api2.git | Python | 417 lines
                    
333            asynloop(*x.args)
                    
334        self.assertTrue(gen.gi_frame.f_lasti != -1)
                    
335        self.assertFalse(x.hub.remove.called)
                    
                
einfo.py https://bitbucket.org/lina_wang_veeva/vone.git | Python | 134 lines
                    
49        self.f_lineno = frame.f_lineno
                    
50        self.f_lasti = frame.f_lasti
                    
51        # don't want to hit https://bugs.python.org/issue21967
                    
                
disassemble.py http://pydbgr.googlecode.com/svn/trunk/ | Python | 204 lines
                    
45        msg("Disassembly of %s: " % x)
                    
46        if hasattr(x, 'f_lasti'):
                    
47            print "++++ 2"
                    
47            print "++++ 2"
                    
48            lasti = x.f_lasti
                    
49            pass
                    
                
coroutines.py https://bitbucket.org/mirror/cpython/ | Python | 310 lines
                    
114            caller = frame.f_back
                    
115            assert caller.f_lasti >= 0
                    
116            if caller.f_code.co_code[caller.f_lasti] != _YIELD_FROM:
                    
176            frame = getattr(gen, 'cr_frame', None)
                    
177        if frame is not None and frame.f_lasti == -1:
                    
178            msg = '%r was never yielded from' % self
                    
                
__init__.py https://bitbucket.org/tenuki/sleepy | Python | 252 lines
                    
72        #'f_back','f_builtins', 'f_code', 'f_exc_traceback', 'f_exc_type',
                    
73        #'f_exc_value','f_globals', 'f_lasti', 'f_lineno', 'f_locals',
                    
74        #'f_restricted', 'f_trace'
                    
74        #'f_restricted', 'f_trace'
                    
75        self.f_lasti = frame.f_lasti
                    
76        self.f_lineno = frame.f_lineno
                    
96        return '\t<%s:%d(%d) (%s)>' % (self.filename, self.f_lineno,
                    
97                                        self.f_lasti, _locals)
                    
98
                    
182            else:
                    
183                if frame.f_lasti == -1:
                    
184                    break
                    
                
program.py http://pydbgr.googlecode.com/svn/trunk/ | Python | 92 lines
                    
47            if self.proc.curframe:
                    
48                self.msg("PC offset is %d." % self.proc.curframe.f_lasti)
                    
49
                    
                
currentframes.py https://bitbucket.org/pypy/pypy/ | Python | 78 lines
                    
22    f_globals = {}
                    
23    f_lasti = -1
                    
24    f_lineno = 0
                    
30        if f is not None:
                    
31            for name in ["f_builtins", "f_code", "f_globals", "f_lasti",
                    
32                         "f_lineno"]:
                    
                
pytracer.py https://bitbucket.org/DundiSivaramBhimavarapu/spark-contactcenter.git | Python | 173 lines
                    
98            # The call event is really a "start frame" event, and happens for
                    
99            # function calls and re-entering generators.  The f_lasti field is
                    
100            # -1 for calls, and a real offset for generators.  Use <0 as the
                    
101            # line number for calls, and the real line number for generators.
                    
102            if frame.f_lasti < 0:
                    
103                self.last_line = -frame.f_code.co_firstlineno
                    
120                code = frame.f_code.co_code
                    
121                if (not code) or code[frame.f_lasti] != YIELD_VALUE:
                    
122                    first = frame.f_code.co_firstlineno
                    
                
_marching_cubes_lewiner.py https://bitbucket.org/xkovacikm2/diplomka.git | Python | 289 lines
                    
27    f = inspect.currentframe().f_back.f_back
                    
28    i = f.f_lasti + offset
                    
29    bytecode = f.f_code.co_code
                    
                
run_trace.py https://bitbucket.org/ned/coveragepy/ | Python | 36 lines
                    
21        frame.f_lineno,
                    
22        frame.f_lasti,
                    
23        )
                    
                
reassembly.py https://bitbucket.org/fj_/randomscripts | Python | 126 lines
                    
26        locals.append(ldict[name])
                    
27    return Saved_frame(frame.f_lasti, locals, retval)
                    
28
                    
                
pytracer.py https://bitbucket.org/g-muiru/server-python.git | Python | 215 lines
                    
120            # The call event is really a "start frame" event, and happens for
                    
121            # function calls and re-entering generators.  The f_lasti field is
                    
122            # -1 for calls, and a real offset for generators.  Use <0 as the
                    
123            # line number for calls, and the real line number for generators.
                    
124            if getattr(frame, 'f_lasti', -1) < 0:
                    
125                self.last_line = -frame.f_code.co_firstlineno
                    
144                code = frame.f_code.co_code
                    
145                if (not code) or code[frame.f_lasti] != YIELD_VALUE:
                    
146                    first = frame.f_code.co_firstlineno
                    
                
coroutines.py https://bitbucket.org/jaraco/cpython-issue13540 | Python | 196 lines
                    
88            caller = frame.f_back
                    
89            assert caller.f_lasti >= 0
                    
90            if caller.f_code.co_code[caller.f_lasti] != _YIELD_FROM:
                    
118        frame = getattr(gen, 'gi_frame', None)
                    
119        if frame is not None and frame.f_lasti == -1:
                    
120            msg = '%r was never yielded from' % self
                    
                
utils.py https://bitbucket.org/blink1073/oct2py | Python | 220 lines
                    
52    bytecode = frame.f_code.co_code
                    
53    instruction = bytecode[frame.f_lasti + 3]
                    
54    instruction = ord(instruction) if PY2 else instruction
                    
55    if instruction == dis.opmap['UNPACK_SEQUENCE']:
                    
56        howmany = bytecode[frame.f_lasti + 4]
                    
57        howmany = ord(howmany) if PY2 else howmany
                    
129        bytecode = frame.f_code.co_code
                    
130        instruction = bytecode[frame.f_lasti + 3]
                    
131        instruction = ord(instruction) if PY2 else instruction
                    
                
tasks.py https://bitbucket.org/atsuoishimoto/cpython | Python | 664 lines
                    
60        frame = self.gen.gi_frame
                    
61        if frame is not None and frame.f_lasti == -1:
                    
62            func = self.func
                    
                
tail_recursion.py https://bitbucket.org/pmatiello/tail-recursion | Python | 55 lines
                    
29        code = caller_frame.f_code.co_code
                    
30        ip = caller_frame.f_lasti
                    
31        return code[ip + 3] in OPCODES
                    
                
tracing_opcode_gen.py https://bitbucket.org/markshannon/hotpy_2 | Python | 68 lines
                    
7            int b;
                    
8            RECORD_SET_LASTI(f->f_lasti);
                    
9            w = POP();
                    
33            int b;
                    
34            RECORD_SET_LASTI(f->f_lasti);
                    
35            w = POP();
                    
57    print('''        TARGET(UNARY_%s)
                    
58            RECORD_SET_LASTI(f->f_lasti);
                    
59            w = POP();
                    
                
dumper.py https://bitbucket.org/tenuki/sleepy | Python | 81 lines
                    
16    def lasti(self):
                    
17        return self.frame.f_lasti
                    
18
                    
42                    return
                    
43                yield (f.f_code.co_filename, f.f_lineno, f.f_lasti)
                    
44                f = f.f_back
                    
                
tracedebug.py https://bitbucket.org/tenuki/sleepy | Python | 42 lines
                    
24        print COL_DEF%(event, fn, frame.f_lineno,
                    
25                            frame.f_lasti, repr(_show))
                    
26
                    
                
 

Source

Language