Debian Codegraph @

rpython/jit/metainterp/walkvirtual.py

raw symbols SCIP
1 # this is some common infrastructure for code that needs to walk all virtuals
2 # at a specific instruction. It is used by resume and unroll.
3
4 class VirtualVisitor(object):
5 def visit_not_virtual(self, value):
6 raise NotImplementedError("abstract base class")
7
8 def visit_virtual(self, descr, fielddescrs):
9 raise NotImplementedError("abstract base class")
10
11 def visit_vstruct(self, typedescr, fielddescrs):
12 raise NotImplementedError("abstract base class")
13
14 def visit_varray(self, arraydescr):
15 raise NotImplementedError("abstract base class")
16
17 def visit_varraystruct(self, arraydescr, fielddescrs):
18 raise NotImplementedError("abstract base class")
19
20 def visit_vrawbuffer(self, func, size, offsets, descrs):
21 raise NotImplementedError("abstract base class")
22
23 def visit_vrawslice(self, offset):
24 raise NotImplementedError("abstract base class")
25
26 def visit_vstrplain(self, is_unicode=False):
27 raise NotImplementedError("abstract base class")
28
29 def visit_vstrconcat(self, is_unicode=False):
30 raise NotImplementedError("abstract base class")
31
32 def visit_vstrslice(self, is_unicode=False):
33 raise NotImplementedError("abstract base class")
34
35 def register_virtual_fields(self, virtualbox, fieldboxes):
36 raise NotImplementedError("abstract base class")
37
38 def already_seen_virtual(self, virtualbox):
39 raise NotImplementedError("abstract base class")