Source

pypy / pypy / rpython / ootypesystem / rvirtualizable2.py

Antonio Cuni 03018d7 

Armin Rigo 2a7669c 
Antonio Cuni 03018d7 

Armin Rigo 2a7669c 

Antonio Cuni 03018d7 


Armin Rigo 741afbb 
Armin Rigo 2a7669c 

Jean-Philippe St… c775f9d 
Armin Rigo 2a7669c 
Antonio Cuni 8e30c0a 
Armin Rigo 741afbb 
from pypy.rpython.rmodel import inputconst
from pypy.rpython.ootypesystem import ootype
from pypy.rpython.ootypesystem.rclass import InstanceRepr, mangle, OBJECT
from pypy.rpython.rvirtualizable2 import AbstractVirtualizable2InstanceRepr

VABLERTI = OBJECT


class Virtualizable2InstanceRepr(AbstractVirtualizable2InstanceRepr, InstanceRepr):

    def _setup_repr_llfields(self):
        llfields = []
        if self.top_of_virtualizable_hierarchy:
            llfields.append(('vable_token', VABLERTI))
        return llfields

    def set_vable(self, llops, vinst, force_cast=False):
        pass # TODO