2007-02-02 17:25:09 +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.cast.js.ipa.callgraph;
|
|
|
|
|
2007-07-06 22:09:08 +00:00
|
|
|
import com.ibm.wala.cast.ipa.callgraph.ScriptEntryPoints;
|
|
|
|
import com.ibm.wala.cast.js.types.JavaScriptTypes;
|
2018-02-05 23:18:37 +00:00
|
|
|
import com.ibm.wala.cast.loader.DynamicCallSiteReference;
|
2009-04-09 20:31:14 +00:00
|
|
|
import com.ibm.wala.classLoader.CallSiteReference;
|
|
|
|
import com.ibm.wala.classLoader.IClassLoader;
|
|
|
|
import com.ibm.wala.classLoader.IMethod;
|
2007-07-06 22:09:08 +00:00
|
|
|
import com.ibm.wala.ipa.cha.IClassHierarchy;
|
2007-02-02 17:25:09 +00:00
|
|
|
|
|
|
|
public class JavaScriptEntryPoints extends ScriptEntryPoints {
|
|
|
|
|
2013-06-25 15:57:37 +00:00
|
|
|
@Override
|
2008-01-16 16:33:10 +00:00
|
|
|
protected CallSiteReference makeScriptSite(IMethod m, int pc) {
|
2018-02-05 23:18:37 +00:00
|
|
|
return new DynamicCallSiteReference(JavaScriptTypes.CodeBody, pc);
|
2008-01-16 16:33:10 +00:00
|
|
|
}
|
|
|
|
|
2007-06-01 03:32:56 +00:00
|
|
|
public JavaScriptEntryPoints(IClassHierarchy cha, IClassLoader loader) {
|
2007-07-06 03:07:29 +00:00
|
|
|
super(cha, loader.lookupClass(JavaScriptTypes.Script.getName()));
|
2007-02-02 17:25:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|