Class SupersDisplayTables

java.lang.Object
org.qbicc.plugin.instanceofcheckcast.SupersDisplayTables

public class SupersDisplayTables extends Object
Build Cohen's display of accessible super types. This is initially just the array of the supertypes of Class C including itself.
  • Method Details

    • get

      public static SupersDisplayTables get(CompilationContext ctxt)
    • getSupersDisplay

      public LoadedTypeDefinition[] getSupersDisplay(LoadedTypeDefinition cls)
    • statistics

      public void statistics()
    • getFirstInterfaceTypeId

      public int getFirstInterfaceTypeId()
    • getNumberOfBytesInInterfaceBitsArray

      public int getNumberOfBytesInInterfaceBitsArray()
    • getInterfaceByteIndex

      public int getInterfaceByteIndex(LoadedTypeDefinition cls)
    • getInterfaceBitMask

      public int getInterfaceBitMask(LoadedTypeDefinition cls)
    • getAndRegisterGlobalTypeIdArray

      public GlobalVariableElement getAndRegisterGlobalTypeIdArray(ExecutableElement originalElement)
      Get the GlobalVariableElement reference to the `qbicc_typeid_array`. As part of it getting it, ensure a reference to it has been recorded into the ExecutableElement's section.
      Parameters:
      originalElement - the original element (must not be null)
      Returns:
      the type ID global
    • getGlobalTypeIdStructType

      public StructType getGlobalTypeIdStructType()
      Get the StructType for the GlobalTypeIdArray (`qbicc_typeid_array`) global variable elements. See #emitTypeIdTable for the definition of the typeid array elements.
      Returns:
      The StructType describing the struct.
    • get_number_of_typeids

      public int get_number_of_typeids()