Package soot.jimple.toolkits.invoke
Class InlinerSafetyManager
- java.lang.Object
-
- soot.jimple.toolkits.invoke.InlinerSafetyManager
-
public class InlinerSafetyManager extends Object
Methods for checking safety requirements for inlining.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckAccessRestrictions(SootMethod container, SootMethod target, String modifierOptions)static booleancheckSpecialInlineRestrictions(SootMethod container, SootMethod target, String options)static booleanensureInlinability(SootMethod target, Stmt toInline, SootMethod container, String modifierOptions)Returns true if this method can be inlined at the given site.
-
-
-
Method Detail
-
checkSpecialInlineRestrictions
public static boolean checkSpecialInlineRestrictions(SootMethod container, SootMethod target, String options)
-
checkAccessRestrictions
public static boolean checkAccessRestrictions(SootMethod container, SootMethod target, String modifierOptions)
-
ensureInlinability
public static boolean ensureInlinability(SootMethod target, Stmt toInline, SootMethod container, String modifierOptions)
Returns true if this method can be inlined at the given site. Will try as hard as it can to change things to allow inlining (modifierOptions controls what it's allowed to do: safe, unsafe and nochanges) Returns false otherwise.
-
-