Scala Compiler 2.13.16 - scala.tools.nsc.backend.jvm.opt.InlineInfoAttributePrototype
Keywords: Scala Compiler 2.13.16 scala.tools.nsc.backend.jvm.opt.InlineInfoAttributePrototype

Scala Compiler2.13.16 < Back


# Packages

-  package root

  The Scala compiler and reflection APIs.

  The Scala compiler and reflection APIs.

  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package tools
  Definition Classes
    scala
-  package nsc
  Definition Classes
    tools
-  package backend
  Definition Classes
    nsc
-  package jvm
  Definition Classes
    backend
-  package opt
  Definition Classes
    jvm
- BoxUnbox
- ByteCodeRepository
- BytecodeUtils
- CallGraph
- ClosureOptimizer
- CopyProp
- FifoCache
- InlineInfoAttribute
- InlineInfoAttributePrototype
- Inliner
- InlinerHeuristics
- LabelNotLive
- LocalOpt
- LocalOptImpls
- RemovePair
- RemovePairDependency

o

scala.tools.nsc.backend.jvm.opt

# InlineInfoAttributePrototype

###

#### object InlineInfoAttributePrototype extends InlineInfoAttribute

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

Source
  InlineInfoAttribute.scala

Linear Supertypes
InlineInfoAttribute, java.io.Serializable, Product, Equals, Attribute, AnyRef, Any

Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. InlineInfoAttributePrototype
2. InlineInfoAttribute
3. Serializable
4. Product
5. Equals
6. Attribute
7. AnyRef
8. Any

1. Hide All
2. Show All

Visibility

1. Public
2. Protected

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##: Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
5.  def clone(): AnyRef
   Attributes
     protected[lang]
   Definition Classes
     AnyRef
   Annotations
     @throws(classOf[java.lang.CloneNotSupportedException]) @native()
6.  final def eq(arg0: AnyRef): Boolean
   Definition Classes
     AnyRef
7.  def finalize(): Unit
   Attributes
     protected[lang]
   Definition Classes
     AnyRef
   Annotations
     @throws(classOf[java.lang.Throwable])
8.  final def getClass(): Class[_ <: AnyRef]
   Definition Classes
     AnyRef → Any
   Annotations
     @native()
9.  val inlineInfo: InlineInfo
   Definition Classes
     InlineInfoAttribute
10.  def isCodeAttribute(): Boolean
    Definition Classes
      Attribute
11.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
12.  def isUnknown(): Boolean

    Not sure what this method is good for, it is not invoked anywhere in the ASM framework.

    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.

    Definition Classes
      InlineInfoAttribute → Attribute
13.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
14.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
15.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
16.  def productElementNames: Iterator[String]
    Definition Classes
      Product
17.  def read(cr: ClassReader, off: Int, len: Int, buf: Array[Char], codeOff: Int, labels: Array[Label]): InlineInfoAttribute

    Deserialize the attribute into an InlineInfo.

    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`.

    Definition Classes
      InlineInfoAttribute → Attribute
18.  final def synchronized[T0](arg0: => T0): T0
    Definition Classes
      AnyRef
19.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
20.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
21.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException]) @native()
22.  def write(cw: ClassWriter, code: Array[Byte], len: Int, maxStack: Int, maxLocals: Int): ByteVector

    Serialize the `inlineInfo` into a byte array.

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

    Definition Classes
      InlineInfoAttribute → Attribute

### Deprecated Value Members

1.  def getLabels(): Array[Label]
   Attributes
     protected[asm]
   Definition Classes
     Attribute
   Annotations
     @Deprecated
   Deprecated

### Inherited from InlineInfoAttribute

### Inherited from java.io.Serializable

### Inherited from Product

### Inherited from Equals

### Inherited from Attribute

### Inherited from AnyRef

### Inherited from Any

### Ungrouped