Commit Graph

150 Commits

Author SHA1 Message Date
dolby-oss 67d26e74c5 allow IR translator to give warnings and errors via the loader
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4125 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-14 01:16:36 +00:00
dolby-oss 9006fce690 some bug fixes to CAst IR generation, especially in handling exceptions
cleanup of how JDT analysis engines work, to make using the JDT front end more modular
bug foxes to JavaScript handling, most notably fixing scoping of functions

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4123 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-13 16:27:15 +00:00
dolby-oss cf0f17f4cd adapt to better handling of function scoping in JS
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4121 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-13 16:21:08 +00:00
dolby-oss adca756422 preserve exception control flow when expanding reads
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4120 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-13 16:20:31 +00:00
dolby-oss ab0bf42f4a fixes to make forms work better for analysis, and to deal with better handling of function scoping in JS
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4119 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-13 16:19:55 +00:00
dolby-oss c82117149d new names for handler functions that include tag name and attribute name
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4112 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-08 19:23:10 +00:00
dolby-oss 565f9ca663 hack for CDATA
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4111 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-07 16:58:58 +00:00
dolby-oss bc294d76a6 make node types into strings
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4108 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-07 15:22:32 +00:00
dolby-oss 032f82f713 typing cleanups
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4105 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-05 16:41:43 +00:00
dolby-oss b7f3f8b7a8 make getStream accessible
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4104 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-05 10:46:53 +00:00
dolby-oss 6b47bc0bd1 fix import warning
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4100 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-04 17:31:19 +00:00
dolby-oss fbc893e2b3 added neglected copyright headers
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4099 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-04 17:27:16 +00:00
dolby-oss 684524e4bc 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@4097 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-04 17:16:18 +00:00
dolby-oss b0849e3ab6 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@4091 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-04 15:25:53 +00:00
dolby-oss cdd42a68b6 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@4090 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-04 15:23:58 +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
sjfink fa825de846 refactoring of fixpoint API
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4033 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-01-17 21:43:18 +00:00
dolby-oss 37acebc7be fixes for url analysis
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4001 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-11-23 15:32:18 +00:00
dolby-oss 01cf547410 check for null values of attributes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3997 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-11-22 17:44:53 +00:00
dolby-oss 9baccf9a10 loosen types
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3996 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-11-09 19:01:07 +00:00
dolby-oss 6f0e52f538 fix for broken input fields
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3995 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-11-05 20:27:29 +00:00
dolby-oss 23b669a691 more work and tests on Web page model
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3991 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-11-05 00:36:44 +00:00
dolby-oss c7558b3646 fixes for Rational
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3985 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-11-02 19:11:58 +00:00
dolby-oss 6bdea6a627 minor hacks for ugly js code
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3978 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-10-11 14:38:04 +00:00
dolby-oss 00a332e632 hack to track URLs
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3971 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-10-11 14:26:48 +00:00
dolby-oss 658598e82b fix to handle redefinition of 'undefined' (yuck)
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3970 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-10-11 14:25:52 +00:00
dolby-oss 0070a69af0 handle bogus ctor calls, likely due to analysis imprecision
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3969 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-10-11 14:24:40 +00:00
yinnon_haviv fb6f25ce37 Put entrypoint code also under main method - required for having correct "this" pointer (window).
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3963 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-10-03 11:52:22 +00:00
yinnon_haviv 38f8a44044 Fix prototype contamination bug (described in added test).
When someone writes: 
MyFunction.prototype.myMethod = ...
we want "myMethod" to be accessible only for objects of type "MyFunction".

- Change how generated ctors look like - now they have a private prototype object into which methods can be added
- Change the PropertyReadExpander to have a different handling when reading the "prototype" field, avoid performing a loop on the prototype chain, so that the points to set of fetched field will be accurate (and allow us to set only the fields of it)


git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3959 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-10-02 19:30:03 +00:00
yinnon_haviv 02842ff765 Adding Generators (Extracting js source from html) that support line numbering. Currently used only from within the JsViewerDriver.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3957 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-29 15:29:55 +00:00
yinnon_haviv 9cae049830 Added viewer for CHA/CG/PA for Java/JavaScript.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3954 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-28 17:11:12 +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 d6dbd72ee6 fix for assertion failure in loading functions with the new way of loading additional files
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3943 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-28 02:00:39 +00:00
yinnon_haviv 2fea4f6e4f - Fix unit tests both for Mac and Windows environment.
- Replace Html Parser with one that is based on Jericho (require running ./fetch_libraries.sh on cast.js project. 

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3942 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-27 15:15:03 +00:00
dolby-oss e4b9d03be5 bug fixes for unicode names and to prevent analysis from modifying the symbol table
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3936 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-14 20:29:05 +00:00
dolby-oss 0ddb040987 bug fix for context-sensitive analysis of javascript functions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3935 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-14 20:28:04 +00:00
dolby-oss 0eaaf73232 handle cases where imprecision causes Object to flow places where it would not be legal
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3934 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-14 20:27:30 +00:00
dolby-oss dec3802c1c fixes for symbols that are used by the call graph builders
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3928 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-10 22:33:47 +00:00
dolby-oss 9855a8b4ff remove debugging prints
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3927 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-10 22:32:54 +00:00
dolby-oss 1faed23dba bug fixes to handling script text
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3925 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-09 18:48:31 +00:00
dolby-oss d3a3c41cbd minor bug fixes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3922 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-09 14:07:07 +00:00
dolby-oss 7fed5f963e make allocation site sensitivity work
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3921 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-09 14:06:28 +00:00
dolby-oss 8a38138bf2 kill debugging print
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3920 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-09 14:05:29 +00:00
dolby-oss b1758cbd72 modularize script writing slightly
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3854 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-07-19 14:08:28 +00:00
msridhar1 447823c629 kill unused supportRefinement option
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3833 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-05-12 18:30:55 +00:00
msridhar1 b8ecc8d48a nuked ReflectionSpecification
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3832 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-05-12 17:19:54 +00:00
dolby-oss 2e724aac3e fixes for JavaScript motivated by Web examples
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3823 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-04-28 19:38:28 +00:00
dolby-oss e877067710 Ishizaki-san's patch for hasMonitorOp
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3733 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-07-17 13:58:55 +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
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