blob: 7002e43d98f1f0a9075991f5aae4ca231e8e83b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* NSC -- new Scala compiler
* Copyright 2005-2014 LAMP/EPFL
* @author Martin Odersky
*/
package scala.tools.nsc
package backend.jvm
import scala.tools.asm
import asm.tree._
/**
* Reporting utilities used in the optimizer.
*/
object OptimizerReporting {
def methodSignature(className: String, methodName: String, methodDescriptor: String): String = {
className + "::" + methodName + methodDescriptor
}
def methodSignature(className: String, method: MethodNode): String = methodSignature(className, method.name, method.desc)
def inlineFailure(reason: String): Nothing = MissingRequirementError.signal(reason)
def assertionError(message: String): Nothing = throw new AssertionError(message)
}
|