Commit Graph

1512 Commits

Author SHA1 Message Date
sjfink 0b441f5b13 organize imports
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2146 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 05:36:40 +00:00
sjfink b804160ef7 organize imports
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2145 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 05:36:36 +00:00
sjfink 1ab977fd1c organize imports
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2144 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 05:35:23 +00:00
sjfink fe7a51a643 delete debugging launcher
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2143 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 05:29:32 +00:00
sjfink 4092d80c0e add @Override annotations
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2142 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 05:28:33 +00:00
sjfink 0d701fcab6 fix bug 1847274 GVSlice fails to check command-line arguments
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2141 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 05:28:02 +00:00
dolby-oss 446a6551fe make CAstTranslatorTest work with new Language scheme
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2140 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 05:27:32 +00:00
sjfink 9846deacec fix compile bugs due to changes in wala.core
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2139 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 05:27:01 +00:00
sjfink fd81fd7bcf fix compile bugs due to changes in wala.core
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2138 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 05:26:56 +00:00
dolby-oss 6185a33408 add echo instruction; adapt invokes to handle multiple return values
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2136 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 05:03:00 +00:00
dolby-oss ce1e0eca5a move some util functionality to CAst core
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2135 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 04:33:40 +00:00
dolby-oss 517ffd91a6 adapt to abstract invoke changes; move some util functionality to CAst core
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2134 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 04:32:54 +00:00
dolby-oss 562c03d0f3 adapt to abstract invoke changes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2133 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 04:29:27 +00:00
dolby-oss 35c2b24881 a little more trace output
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2132 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 04:27:53 +00:00
dolby-oss 8e46277e51 move echo instruction to CAst core; generalized invokes to deal with multiple return values; generalize function support to handle non-first-class functions, modeled as statics
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2131 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 04:26:21 +00:00
dolby-oss 4f4f941ddd refactor to allow SSAAbstractInvokeInstruction to represent invokes with multiple return values, as needed by some languages
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2130 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-10 04:23:13 +00:00
yahave 3603e9b4a2 allow subclasses to access cg and pointeranalysis (make fields protected instead of private)
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2129 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-09 16:53:11 +00:00
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