2006-11-22 17:38:46 +00:00
|
|
|
/*******************************************************************************
|
|
|
|
* Copyright (c) 2002 - 2006 IBM Corporation.
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
*
|
|
|
|
* Contributors:
|
|
|
|
* IBM Corporation - initial API and implementation
|
|
|
|
*******************************************************************************/
|
|
|
|
package com.ibm.wala.escape;
|
|
|
|
|
|
|
|
import com.ibm.wala.types.MethodReference;
|
2011-08-16 16:51:11 +00:00
|
|
|
import com.ibm.wala.util.WalaException;
|
2006-11-22 17:38:46 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Basic interface from which to execute and get the results of escape analysis
|
|
|
|
*/
|
|
|
|
public interface IMethodEscapeAnalysis {
|
|
|
|
|
|
|
|
/**
|
2009-06-12 14:33:32 +00:00
|
|
|
* @param allocMethod a method which holds an allocation site
|
|
|
|
* @param allocPC bytecode index of allocation site
|
|
|
|
* @param m method in question
|
|
|
|
* @returns true if an object allocated at the allocation site <allocMethod,allocPC> may escape from an activation of method m,
|
|
|
|
* false otherwise
|
2006-11-22 17:38:46 +00:00
|
|
|
*/
|
|
|
|
public boolean mayEscape(MethodReference allocMethod, int allocPC, MethodReference m) throws WalaException;
|
|
|
|
|
|
|
|
}
|