InlineInfoAttributePrototype

dotty.tools.backend.jvm.opt.InlineInfoAttributePrototype

In order to instruct the ASM framework to deserialize the ScalaInlineInfo attribute, we need to pass a prototype instance when running the class reader.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Attribute
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Inherited methods

Attributes

Inherited from:
Attribute
override def isUnknown: Boolean

Not sure what this method is good for, it is not invoked anywhere in the ASM framework. However, the example in the ASM manual also overrides it to false for custom attributes, so it might be a good idea.

Not sure what this method is good for, it is not invoked anywhere in the ASM framework. However, the example in the ASM manual also overrides it to false for custom attributes, so it might be a good idea.

Attributes

Definition Classes
Inherited from:
InlineInfoAttribute

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
override def read(cr: ClassReader, off: Int, len: Int, buf: Array[Char], codeOff: Int, labels: Array[Label]): InlineInfoAttribute

Deserialize the attribute into an InlineInfo. The attribute starts at cr.b(off), but we don't need to access that array directly, we can use the read methods provided by the ClassReader.

Deserialize the attribute into an InlineInfo. The attribute starts at cr.b(off), but we don't need to access that array directly, we can use the read methods provided by the ClassReader.

buf is a pre-allocated character array that is guaranteed to be long enough to hold any string of the constant pool. So we can use it to invoke cr.readUTF8.

Attributes

Definition Classes
Inherited from:
InlineInfoAttribute
override def write(cw: ClassWriter, code: Array[Byte], len: Int, maxStack: Int, maxLocals: Int): ByteVector

Serialize the inlineInfo into a byte array. Strings are added to the constant pool and serialized as references.

Serialize the inlineInfo into a byte array. Strings are added to the constant pool and serialized as references.

Attributes

Definition Classes
Inherited from:
InlineInfoAttribute

Inherited fields

final val `type`: String

Attributes

Inherited from:
Attribute