Commit Graph

1345 Commits

Author SHA1 Message Date
yahave 2f0c0072ba allow direct construction of class hierarchy
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2128 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-08 21:21:24 +00:00
yahave 3ecf5850ca permit public access to dmd
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2127 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-08 21:19:07 +00:00
rmfuhrer 0b5a2fecb5 File that maps plugin version to contained src file versions.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2126 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-08 20:55:46 +00:00
rmfuhrer 3e975f91f1 Updated to latest plugin/feature names. Now obtains plugin ID and version # from the bundle manifest.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2125 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-08 20:54:16 +00:00
dolby-oss 99cfde2030 fix for Sun javac compile issue
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2124 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-07 01:48:21 +00:00
schandra_sf 1293d730f9 Getting rid of @Overrides
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2123 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 22:24:05 +00:00
sjfink 8fe21cc50d delete some obsolete incorrect debug code.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2122 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 19:57:50 +00:00
sjfink 3ea8de49e4 bug fixes. Add Javascript language to analysis scope.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2121 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 19:56:00 +00:00
sjfink 6bebc54148 bug fix: assume Java language by default.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2120 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 19:46:15 +00:00
sjfink dc6b9afd0e more words
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2119 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 19:29:50 +00:00
rmfuhrer 1cce2cc801 Made populateScope() non-static so it can be overridden and derived classes can add other Modules to the analysis.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2118 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 15:01:07 +00:00
rmfuhrer d6e1b20b5c Now adds the Language object representing JavaScript to the AnalysisScope.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2117 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 14:58:36 +00:00
rmfuhrer c5270a5f11 Now uses the base LanguageImpl implementation, which has support for new API that represents Languages in a hierarchy.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2116 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 14:57:33 +00:00
rmfuhrer a66327a038 Weakened assertions that insisted that the type being allocated isArrayType(); now the types must either answer isArrayType(), or not be from the Java ClassLoader.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2115 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 14:55:50 +00:00
rmfuhrer 10dfaf51b3 Now maintains a set of "compatible" Languages that contribute types to the given ClassHierarchy, which has a unique root type.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2114 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 14:53:29 +00:00
rmfuhrer 728b86d817 Now maintains a set of Languages (supplied by the client) that are involved in the current analysis, and provides API for identifying the set of "base languages" (relative to the specified inheritance relationships among Languages), each of which induces a distinct ClassHierarchy.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2113 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 14:49:22 +00:00
rmfuhrer 0c87273fd8 Default implementation of buildAnalysisScope() now adds the Java Language to the scope.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2112 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 14:47:00 +00:00
rmfuhrer 7278cf71ff Extracted base Language implementation to a separate class for better reuse.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2111 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 14:32:59 +00:00
rmfuhrer da1ac21d12 Added API to Language for representing the hierarchy of languages, which is necessary for WALA ClassLoaders to correlate loaders to Languages and know which languages share a ClassHierarchy.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2110 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 14:31:45 +00:00
rmfuhrer fc1cf61c1b buildAnalysisScope() now adds the Language object for JavaScript to the scope's Language set (since the AnalysisScope now holds that information).
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2109 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 14:29:54 +00:00
rmfuhrer aa5150499e Now uses a map from ClassLoaderReference to IRTranslatorExtension, so that source files in different languages are processed by the right kind of IRTranslatorExtension.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2108 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 14:28:25 +00:00
rmfuhrer a7993110bb buildAnalysisScope() now calls overridable method makeSourceAnalysisScope() to actually create the scope, so that sub-classes can create a scope that sets up the right set of ClassLoaders to be involved in the analysis.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2107 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 14:24:46 +00:00
rmfuhrer 05cfca0a3d Factory method make(...) no longer takes an explicit arg to define the languages, but gets this info from the AnalysisScope instead. Added type parameters in a few places for clarity and static checking.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2106 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-06 14:20:20 +00:00
sjfink 23b0e9a91c bug fix and related API changes for interface type tests
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2105 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-05 19:49:39 +00:00
sjfink 6723d33683 bug fix and related API changes for interface type tests
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2104 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-05 19:49:03 +00:00
sjfink fe69687001 bug fix and related API changes for interface type tests
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2103 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-05 19:48:54 +00:00
sjfink 30e56cf7a2 bug fix and related API changes for interface type tests
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2102 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-05 19:48:51 +00:00
sjfink 66f7358adf tweak some comments
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2101 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-05 17:39:38 +00:00
sjfink 4eb5ec252f tweak some comments
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2100 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-05 17:37:21 +00:00
sjfink d90498f880 tweak some comments
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2099 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-05 17:33:52 +00:00
sjfink 0c837f78ce add support for enable-assertions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2098 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-05 16:20:39 +00:00
loginov d394f8c558 Made cg & partialRoots fields, as well as the
constructor protected instead of private.

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2097 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-05 03:29:31 +00:00
sjfink 1821e542df more generics
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2096 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-04 21:40:45 +00:00
sjfink e8543242d0 more generics
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2095 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-04 21:40:38 +00:00
sjfink 52f13b2fc0 more generics
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2094 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-04 21:40:34 +00:00
sjfink 3e33169ecc add some generics
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2093 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-04 20:44:04 +00:00
schandra_sf 3109dfa77a fixed @Override
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2092 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-03 22:33:18 +00:00
schandra_sf 45d2024c25 removed an @Override
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2091 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-03 22:32:43 +00:00
sjfink 99fbd5e1c5 misc cleanups
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2090 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-03 19:18:34 +00:00
sjfink cc46007145 change some WalaExceptions into IOExceptions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2089 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-03 18:02:49 +00:00
sjfink a706751024 bug fix in infinite loop check
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2088 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-03 16:14:28 +00:00
sjfink 5129408291 add words
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2087 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-03 15:42:58 +00:00
sjfink 5dc5550b53 clean up model of arraycopy
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2086 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-03 15:42:35 +00:00
sjfink 4c973295e9 git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2085 f5eafffb-2e1d-0410-98e4-8ec43c5233c4 2007-12-03 15:41:59 +00:00
sjfink f9549c3200 git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2084 f5eafffb-2e1d-0410-98e4-8ec43c5233c4 2007-12-03 15:41:38 +00:00
sjfink 6606741e2b tweak a comment
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2083 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-30 13:52:00 +00:00
sjfink 2bb8e2cad8 add some fault-tolerance; throw an exception if bad things happen
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2082 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-30 13:51:43 +00:00
sjfink cc4c67d667 arraycopy fixes from marco
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2081 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-29 18:57:22 +00:00
sjfink cc1ea1a081 marco's updates
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2080 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-29 18:56:37 +00:00
sjfink f2c1acaabb add an instance key to model the char[] contents of a string constant
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2079 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-29 18:54:44 +00:00