From 4011ebbf9f16dbd4db2c5622f76580dee4444756 Mon Sep 17 00:00:00 2001 From: sjfink Date: Tue, 24 Apr 2007 15:20:21 +0000 Subject: [PATCH] add a comment git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1000 f5eafffb-2e1d-0410-98e4-8ec43c5233c4 --- .../src/com/ibm/wala/classLoader/CallSiteReference.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/com.ibm.wala.core/src/com/ibm/wala/classLoader/CallSiteReference.java b/com.ibm.wala.core/src/com/ibm/wala/classLoader/CallSiteReference.java index b384d543b..ccd4b9579 100644 --- a/com.ibm.wala.core/src/com/ibm/wala/classLoader/CallSiteReference.java +++ b/com.ibm.wala.core/src/com/ibm/wala/classLoader/CallSiteReference.java @@ -21,6 +21,14 @@ import com.ibm.wala.util.debug.Assertions; * Simple object that represents a static call site (ie., an invoke instruction * in the bytecode) * + * Note that the meaning of a call site reference depends on two things: + * the program counter, and the containing IR. Thus, it suffices to + * defines equals() and hashCode() from ProgramCounter, since this class + * does not maintain a pointer to the containing IR (or CGNode) anyway. + * If using a hashtable of CallSiteReference from different IRs, + * you probably want to use a wrapper which also holds a pointer to + * the governing CGNode. + * * @author sfink */ public abstract class CallSiteReference extends ProgramCounter implements BytecodeConstants, ContextItem {