Commit Graph

33 Commits

Author SHA1 Message Date
msridhar1 8b547b4812 Split up ForInLoopRewriter in preparation for merging changes back into
open-source WALA. The extraction code is now in com.ibm.wala.cast.js,
with some more general stuff moved to com.ibm.wala.cast and
com.ibm.wala.util. The tests are in com.ibm.wala.cast.js.test and
com.ibm.wala.cast.js.rhino.test. ForInLoopRewriter itself only contains
the framework specific tests and the copies of the frameworks
themselves.

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4418 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:52:26 +00:00
msridhar1 ea76fd31ab Extraction of correlated read/write pairs needs to be done _before_
property read expansion. Extended TranslatorToCAst to support this.
Various other changes to make it possible to plug in the correlated pair
extractor.

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4411 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:49:48 +00:00
msridhar1 d33880c5ce Storing more position information.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4410 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:49:19 +00:00
msridhar1 ec28aca253 Bug fix for translation of 'in' expressions.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4382 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:42:18 +00:00
msridhar1 063ddd32cd Renamed temporary variable "base" used when expanding property reads to
"$$ base" to avoid name clashes with user-defined variables.

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4358 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:32:38 +00:00
msridhar1 eb73fac9e4 documentation of global object handling
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4326 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:24:25 +00:00
msridhar1 02c1b80605 update Eclipse prefs
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4325 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:24:07 +00:00
msridhar1 8ce7db97ea more global object handling; needs documentation
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4324 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:23:56 +00:00
msridhar1 3d07fcb3a8 Cosmetic changes.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4305 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:18:41 +00:00
msridhar1 2ca41027c5 Fixed CAst representation of || and &&.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4304 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:18:30 +00:00
msridhar1 b517c6ca85 Started testing on MooTools.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4299 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:17:15 +00:00
msridhar1 201b28eea0 bug fixes for handling of prototype and __proto__
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4188 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-06-22 21:23:49 +00:00
msridhar1 bb445b387c javadoc
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4142 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-22 19:55:41 +00:00
msridhar1 f347c93f61 avoid storing a pointer to the Rhino AST in the object returned from walkEntity()
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4141 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-22 19:55:26 +00:00
msridhar1 a7f99801b6 change BaseCollectingContext to only track one expression
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4140 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-22 19:55:09 +00:00
msridhar1 010332620f javadoc, refactoring
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4139 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-22 18:15:10 +00:00
msridhar1 e608633a51 javadoc
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4137 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-22 18:14:26 +00:00
msridhar1 1db949cdc1 javadoc, cleanup some types and remove some unnecessary code
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4136 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-22 18:14:09 +00:00
msridhar1 cf13f9f071 refactoring, javadoc, formatting
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4135 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-21 21:34:15 +00:00
dolby-oss beefde9ecb handle 'const' decls in Rhino (extension, treated like 'var' decls)
model type errors from property reads

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4114 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-13 16:16:43 +00:00
dolby-oss 5f47938e7e allow more bad javascript code
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4110 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-07 16:57:45 +00:00
dolby-oss a55a25595e turn unneeded field into local
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4109 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-07 16:57:03 +00:00
dolby-oss 78ae5ffece update to latest Rhino, 1.7R2
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4107 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-05 19:18:14 +00:00
dolby-oss b20b7d2b91 added recording of script tag locations from which script code is included into the analysis of a Web page
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4098 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-04 17:17:01 +00:00
dolby-oss 79b44cc3bc updates to processing of Web pages:
1) adopted the code from Rational for HTML handling
    i) extended it to integrate better source mapping into IR
    ii) integrated fixes from the old html processing to collect more info on forms
    iii) added some copyright comments
  2) updated version of jericho
  3) added support for nu.validator for html5
  4) added script to fetch html parser jars, and removed binary jar
  

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4092 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-04 15:27:11 +00:00
msridhar1 13ca8a7aa8 grab external deps via ant
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4073 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-03-10 22:06:18 +00:00
dolby-oss bfb9abe0c0 fix to handle redefinition of 'undefined' (yuck)
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3973 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-10-11 14:28:24 +00:00
yinnon_haviv fc0d5ecc47 - Fix the cast rewriter to rewrite labels too.
- Fix the translation of switch statements to keep the labels "alive" (part of the AST).
- Added test case for the bug.

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3960 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-10-02 20:27:17 +00:00
yinnon_haviv 1d4d158de3 Replace manual creating of URL (using, e.g., "file:" + f.getAbsolutePath() ) with progrematic one.
(File.toURI().toURL()). Good for cross platform (Mac vs. Windows)

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3953 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-28 16:22:08 +00:00
dolby-oss eede2f13db bug fix for exceptions out of functions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3933 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-14 20:25:10 +00:00
msridhar1 8b41d7fc88 update to JUnit 4
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3747 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-07-27 23:21:22 +00:00
msridhar1 7911c6d9a8 remove jars from repository
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3745 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-07-27 22:51:30 +00:00
dolby-oss a3dc6411ae separate Rhino-specific portions of javascript analysis
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3731 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-07-16 18:09:54 +00:00