Commit Graph

29 Commits

Author SHA1 Message Date
dolby-oss 4c6d062dbb blunt force trauma to CAst frond end:
1) Structural changes in the AstTranslator to allow retranslation and generation of custom IR.  This is mostly moving state from the translator itself into the context.
2) Some refactoring to share some AST generation code across the Java and JavaScript front ends.
3) Switching to the latest Rhino, release 1.7R3; this is a pervasive change to the JavaScript Rhino translator, since it involves switching to the new AST interface in Rhino.
4) Common code to, as an option, translate Do-style loops by replicating the loop body.  This allows the use of CAstNode.LOOP forms for such loops.
5) Some bug fixes to the mechanisms of the CAstRewriter to handle weird control flow cases.
6) An example of retranslation to specialize JavaScript methods based on how many arguments they receive at call sites.


git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4425 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-27 20:15:33 +00:00
msridhar1 b3b6585077 print a message indicating script is grabbing polyglot from svn
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4169 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-05-04 21:30:07 +00:00
dolby-oss c3d8313f74 add java_cup lib
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4162 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-28 19:18:13 +00:00
msridhar1 e68af40449 remove unnecessary Import-Package line
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4157 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-27 16:53:45 +00:00
dolby-oss 3d76f097b5 fix a few warnings
get the right version of the polyglot jar


git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4156 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-27 16:46:41 +00:00
dolby-oss 9e2c05f206 merge from polyglot3 branch
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4155 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-27 16:20:21 +00:00
dolby-oss 41daeadbb8 merge polyglot3 branch
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4154 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-27 14:55:30 +00:00
msridhar1 857e456806 organize imports
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4081 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-03 04:08:05 +00:00
msridhar1 8c894950c5 remove old script
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4072 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-03-10 22:05:40 +00:00
msridhar1 7785d3ba9b added ant build xml for fetching external dependencies. didn't make this a builder of the project since it didn't work consistently
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4068 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-03-10 21:31:38 +00:00
sjfink 3a49f17ebc update code formatting for Eclipse 3.6
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4048 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-02-03 15:14:47 +00:00
dolby-oss 607415b897 adapt to wala changes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3926 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-09 23:21:30 +00:00
rmfuhrer 34fca8ebca Fixed nit: findInnermostClassLoader() no longer adds nulls into the Set of parent class loaders.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3773 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-12-02 19:05:23 +00:00
sjfink a0efbee8ff Major refactoring to introduce com.ibm.wala.ide. Many related changes and patches from Marcelo Paternostro.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3693 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-22 15:06:12 +00:00
dolby-oss 2e8da872c0 support for replication-based translation of Do loops in Java, so that the standard LOOP node type can be used.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3596 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-05-15 16:06:09 +00:00
sjfink db1bc2fadc fix broken CAst builds.
deprecate Internal and NonNull annotations

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3577 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-05-07 13:51:24 +00:00
sjfink 9939142eae switch from Assertions._assert to Java assertions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3555 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-30 13:16:52 +00:00
dolby-oss b10a6cc818 more detail in an assertion failure
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3531 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-23 14:52:12 +00:00
sjfink 5afa0c4b6a suppress some compiler warnings
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3453 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-13 19:42:46 +00:00
sjfink 31086f1f2e switch to wala code formatter
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3452 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-13 19:39:48 +00:00
sjfink 84b55bd0ee tweak a comment
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3449 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-13 19:21:04 +00:00
sjfink 850f541525 adapt to wala.core IOException
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3397 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-31 20:20:34 +00:00
sjfink 33ccd23d55 tweak build path
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3370 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-26 17:23:39 +00:00
dolby-oss 134b84db07 adapt X10 support to WALA changes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3364 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-24 17:06:49 +00:00
sjfink 2b24aa35ff fix polyglot CAst compile errors
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3354 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-18 22:47:26 +00:00
dolby-oss c88772b8ec fixes to make incubator Eclipse support use JDT-based Java front end
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3183 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-01-21 00:43:00 +00:00
dolby-oss 877fc2efc9 refactor polyglot-based java code in its own projects
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3166 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-01-09 02:57:52 +00:00
dolby-oss 6d7fe4cc2c refactor polyglot-based java code in its own projects
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3163 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-01-09 02:52:56 +00:00
dolby-oss fff6607a1d refactor polyglot-based java code in its own projects
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3162 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-01-09 02:52:22 +00:00