public class Devirtualizer extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<JMethod,JMethod> |
devirtualMethodByMethod
Maps each Object instance methods (ie,
Object.equals(Object) ) onto
its corresponding devirtualizing method. |
Modifier and Type | Method and Description |
---|---|
static void |
exec(JProgram program) |
static boolean |
isGetClassDevirtualized(JProgram program,
JType type)
Returns true if getClass() is devirtualized for
type ; used in
ReplaceGetClassOverrides to avoid replacing getClass() methods that need
trampolines. |
protected Map<JMethod,JMethod> devirtualMethodByMethod
Object.equals(Object)
) onto
its corresponding devirtualizing method.public static void exec(JProgram program)
public static boolean isGetClassDevirtualized(JProgram program, JType type)
type
; used in
ReplaceGetClassOverrides
to avoid replacing getClass() methods that need
trampolines.Copyright © 2018. All rights reserved.