Commit Graph

400 Commits

Author SHA1 Message Date
dolby-oss 5144df56be more assertion checking of control flow map during IR generation; bug fix to CAst rewriting to handle control flow edges out of the code being rewritten; bug fix to AstTranslator for control flow in finally blocks so that it throws either the prior exception or any new one
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1312 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-25 20:08:56 +00:00
sjfink 6f61f9c9e2 introduce factory for Iterator2Collection
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1305 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-21 16:13:34 +00:00
dolby-oss 3218734169 moved CAstRewriterFactory to CAst core project
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1292 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-16 16:04:30 +00:00
sjfink e261caa228 misc. cleanups
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1282 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-15 14:01:44 +00:00
dolby-oss 1812d506bd fix to isInit predicate in AstMethod
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1277 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-14 17:43:30 +00:00
dolby-oss d958868f41 a but more javadoc; added accessor for getting all value numbers exposed to lexical scoping; allow scopes during translation to ask for parent scopes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1274 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-12 13:43:16 +00:00
sjfink 9f1ab271a9 remove some unnecessary IClassHierarchy parameters
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1256 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-06 20:15:48 +00:00
sjfink e5e40ab661 1) change implementation of CGNode hierarchy to avoid type parameters.
2) nuke BasicEntrypoints
3) tweak interface to InstanceKeyFactory for constants
4) refactoring for HeadlessWALA application

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1229 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-01 18:50:37 +00:00
dolby-oss 8472f026f5 support for cross-language call graphs
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1215 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-01 03:31:35 +00:00
sjfink 93e0e4c06e change some Iterators in API to Collections
remove some unnecessary WarningSet parameters

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1209 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-31 02:38:56 +00:00
sjfink 8e741a8149 misc cleanup and refactoring
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1180 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-25 19:33:42 +00:00
rmfuhrer 16938f0f70 getLocalReadKey() is now aware that certain invoke instructions
have uses other than parameters and lexical uses (e.g. X10's
async invoke instruction, which has a separate use for the
"place expr").

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1177 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-25 16:41:47 +00:00
rmfuhrer a95a541834 New API method added to identify the last lexical use, used
when invoke instruction references entities other than parameters
and lexical uses (e.g. the "place expr" in X10's async invoke).

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1176 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-25 16:40:54 +00:00
rmfuhrer b0dae9066a Added toString() impl.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1175 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-25 16:39:08 +00:00
sjfink 44e81fe29f misc. cleanups and refactoring
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1166 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-23 13:42:47 +00:00
mkogane db4d2da065 added Byte case in getConstantValue of AbstractScope
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1142 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-17 02:41:25 +00:00
sjfink a946870b21 small cleanups for TypeInference
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1141 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-16 19:32:02 +00:00
sjfink eacd5d6a95 delete Entrypoints interface.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1127 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-15 17:44:59 +00:00
sjfink 86d1020a43 feature 1718935: make Entrypoints implement Iterable
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1117 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-14 21:31:03 +00:00
sjfink c93222a501 feature 1717405: rename getFieldReference() to getReference()
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1106 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-14 17:01:24 +00:00
dolby-oss 0c456261ff restore code that is being used
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1050 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-03 19:58:01 +00:00
sjfink 25cfa83e11 make SSAInstruction.equals() consistently use ==
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1048 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-03 17:26:35 +00:00
sjfink 8c2927636c move PrunedCFG to wala.core
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1045 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-03 17:07:57 +00:00
sjfink 0ff21e9cce just format
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1011 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-04-26 16:04:16 +00:00
dolby-oss 9f35d33d2e add native definition of IS_DEFINED_EXPR
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1002 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-04-24 16:15:53 +00:00
sjfink f01c8208f6 introduce some generics
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@995 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-04-24 14:10:57 +00:00
sjfink 8c5fdceec3 organize imports
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@994 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-04-24 13:51:15 +00:00
dolby-oss 0023341733 new instruction to represent checking whether a local or a field is defined
new abstract base for CAst rewriters, used by the CAstCloner



git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@985 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-04-19 13:48:01 +00:00
tabee d84a963062 git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@940 f5eafffb-2e1d-0410-98e4-8ec43c5233c4 2007-04-12 05:45:22 +00:00
dolby-oss 5483465978 fixes to adding default values when desired
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@925 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-04-04 17:50:12 +00:00
dolby-oss c51ad28e66 new CAstSymbol type for information about a symbol being declared. new support for default init values for unitialized variables
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@920 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-04-04 13:02:17 +00:00
dolby-oss 095a1846f8 add more IR-based accessors for CAst context interpreter
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@899 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-03-27 19:55:25 +00:00
sjfink d10f912ee4 make IBasicBlock an Iterable<IInstruction>. Rename iterateAllInstructions() to iterator()
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@877 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-03-22 10:50:31 +00:00
sjfink 5f3e4543d1 Graph API change: Graph is now an Iterable of Nodes!
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@865 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-03-21 21:07:01 +00:00
dolby-oss 685bad81fb fix bug involving SSA conversion of catch statements
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@855 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-03-14 03:38:59 +00:00
sjfink ca3f29676a minor cleanups
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@852 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-03-12 16:10:01 +00:00
dolby-oss 25a4b64c12 Added source position information for entire code bodies as a whole
Rewrote to the mechanism for invoking the callbacks for lexical scoping to not suck as much as before, i.e. it is somewhat less inefficient

adapt to filter instance key changes

bug fixes to IR generation for switch statements


git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@839 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-03-12 02:00:43 +00:00
tabee 75ac0b79c8 2007 02/27, Naoshi Tabuch: tabee@jp.ibm.com
Build script for native code.
On cygwin platforms, VC++/Platform SDK setup scripts are invoked first.

# moved from CAst.PHP project (yet unpublished)

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@798 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-27 14:53:46 +00:00
tabee 6f7e4c5b7d 2007 02/27, Naoshi Tabuch: tabee@jp.ibm.com
Fix for Visual C++
+ uses _alloca()/memset() instead of var-length arrays/bzero()
+ includes <malloc.h> for _alloca()
# neither do not affect gcc compilation

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@797 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-27 14:44:42 +00:00
rmfuhrer 1ad96deff3 Added JavaDoc comment to BLOCK_EXPR.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@757 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-14 16:33:35 +00:00
rmfuhrer bcce58c4ed A little more use of generics.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@747 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-14 16:16:23 +00:00
dolby-oss 9e79e45c93 some minimal javadoc comments for new instruction classes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@732 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-14 03:07:33 +00:00
sjfink e87a0d4a19 formatting and javadoc
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@718 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-12 21:16:57 +00:00
sjfink 05e1f973a6 squash remaining Eclipse warnings
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@700 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-09 15:33:45 +00:00
sjfink 76a0b991e7 clean up some generics stuff
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@694 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-09 10:05:07 +00:00
sjfink a92bff31bb some generics
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@692 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-08 20:45:07 +00:00
sjfink f4fef68587 miscellaneous minor cleanups. eclipse build stuff. import statements.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@680 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-08 19:08:31 +00:00
dolby-oss eb8c4dd925 fixes to build.xml stuff
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@641 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-04 19:37:55 +00:00
dolby-oss 334e6fc3c7 fixes to conversion of native code to wala'ized names
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@639 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-02 21:22:02 +00:00
dolby-oss 3d9390a397 Initial contribution of core script analysis code
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@616 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-02 17:17:13 +00:00