Max Schaefer
a3d8a0c757
Renamed two test methods.
2012-07-09 14:24:36 -04:00
Max Schaefer
c5e31617e1
Some more tests.
2012-07-09 14:22:34 -04:00
Max Schaefer
d40729c444
Small improvement to treatment of generated names in extraction tests.
2012-07-05 16:31:58 -04:00
Max Schaefer
b4172d5920
Test for break statements that break out of a non-loop statement. This
...
is currently not handled correctly by the translation to CAst.
2012-07-05 15:51:04 -04:00
Max Schaefer
468f0a9864
Added a workaround for differences in generated names between actual and
...
expected output in some of the tests.
2012-07-05 09:56:53 -04:00
Max Schaefer
fca3999e9a
Fixed rewriting of non-constant switch cases.
2012-07-05 09:37:47 -04:00
Max Schaefer
5ba9b7b735
Merge branch 'master' of git@riverdale.watson.ibm.com:jsanalysis
2012-07-05 08:34:01 -04:00
Max Schaefer
9d1d198777
New test case for call graph construction.
2012-07-04 15:29:16 -04:00
Manu Sridharan
f6e52c9b93
Merge remote-tracking branch 'riverdale/master'
2012-07-04 10:27:13 -07:00
Max Schaefer
7bdc127ce5
Workaround for invalid end positions in CAst.
2012-07-04 12:19:05 -04:00
dolby
d0d1ff1a2b
Merge branch 'master' of https://github.com/wala/WALA.git
2012-07-03 19:22:37 -04:00
Manu Sridharan
76ca05ccb8
comment out manual enabling of CG dumps; we really need a better solution here
2012-07-03 15:55:02 -07:00
Manu Sridharan
ec2b83ff1b
don't run the jquery test as part of the standard regression; we don't scale yet
2012-07-03 15:07:20 -07:00
dolby
4b3cba710d
changes from upstream
2012-06-29 15:47:54 -04:00
dolby
b6ee356641
tests for source mapping
2012-05-11 15:03:10 -04:00
dolby
dfe06b8ff3
changes to Web source mapping to exploit rhino 1.7R3 source offsets
2012-05-08 13:17:01 -04:00
dolby-oss
553ab68efa
jquery example
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4545 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-03-08 17:35:32 +00:00
dolby-oss
a9ec87f360
Changes motivated by analysis issues in JavaScript. The main change is that calls of the form f.x() in JavaScript are now analyzed like 'method calls' so that the 'this' pointer in the receiver functions can be filtered based upon the types that actually have the method being invoked. This requires much more dynamic filtering than in a language like Java, since properties like 'x' are simply properties that happen to hold functions, and so can be assigned in a first-class manner. Thus, the filtering needs to handle variance in both the types and the values of their properties; this is implemented as multiple levels of abstract object directed side effect equations in the dataflow system.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4535 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-03-01 02:45:51 +00:00
dolby-oss
99564d6e06
strengthen checking of argument specialization test
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4533 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-23 18:15:05 +00:00
msridhar1
a840e068d6
When extracting correlated pairs, check that the extraction region does
...
not reference the "arguments" variable.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4506 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:25:39 +00:00
msridhar1
a3d0b45eef
Added support for localising variables through which correlated reads
...
flow. This somewhat compensates for the lack of SSA form for closure
variables under the new lexical scheme.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4505 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:25:22 +00:00
msridhar1
efcbdd625c
Merge remote-tracking branch 'riverdale/extractor-fix' into lexical-again
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4502 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:24:48 +00:00
msridhar1
5f2733bd0e
fix some compile errors
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4501 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:24:32 +00:00
msridhar1
954a1f091b
more work on precise lexical configuration
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4495 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:22:55 +00:00
msridhar1
c861bfed80
introduce CGBuilderType enum, related refactorings
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4493 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:22:14 +00:00
msridhar1
a3826f23a8
refactoring: rename some Util classes
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4492 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:21:59 +00:00
msridhar1
92d8dc1e3d
Revert "refactor context selectors: extract delegation into ComposedContextSelector"
...
This reverts commit 7ff1219c5baed388a82d14fcf81d2b1f456c4e95. That commit broke
a dojo test, and I'm not sure why.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4491 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:21:18 +00:00
msridhar1
edd300cf00
refactor context selectors: extract delegation into ComposedContextSelector
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4489 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:20:26 +00:00
msridhar1
677fc96aec
add a test
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4485 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:19:32 +00:00
msridhar1
a1a62d4793
Fixed a longstanding bug in the handling of arguments: both v1 _and_ v2
...
should be ignored when setting up the arguments array (the former is the
invoked function, the latter is the receiver).
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4480 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:18:32 +00:00
msridhar1
fcf0aa824d
in the Function.apply() context selector, only add one-level of call strings when an ApplyContext is also being used
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4474 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:17:22 +00:00
msridhar1
54d50d4eea
Turning off handling of apply for this test.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4472 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:16:55 +00:00
msridhar1
2dda77a0fb
another bug fix; looking good...
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4467 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:15:57 +00:00
msridhar1
c9d914304d
add a test
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4462 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:14:36 +00:00
msridhar1
9ad5c55d85
generate lexical access instructions for methods accessing their own exposed vars. still need to fix call graph construction
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4461 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:14:26 +00:00
msridhar1
c87d4731bb
add a test case that causes a crash
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4458 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-17 20:13:39 +00:00
Max Schaefer
aa00b04c00
Some more fixes to the closure extractor; now only a single test fails.
2012-02-09 08:21:10 -05:00
msridhar1
eb1f59407d
Undoing accidental commit.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4453 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-08 15:35:56 +00:00
msridhar1
d7544c111f
Minor change.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4452 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-08 15:35:45 +00:00
msridhar1
6449da85df
Some final fixes to the for-in body extractor; it now seems to work as
...
before.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4451 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-08 15:35:32 +00:00
msridhar1
3b5a939033
New test for an NPE during SSA conversion.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4450 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-08 15:35:16 +00:00
msridhar1
c47b6a77b4
Need to pass on the preprocessor when constructing the call graph
...
builder.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4449 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-08 15:35:06 +00:00
msridhar1
96f0d763d2
Minor change.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4443 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-08 15:33:21 +00:00
msridhar1
55adb1ac2e
Minor change.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4442 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-08 15:33:10 +00:00
dolby-oss
79946e98d6
purported fixes for Max's latest bugs (with some tests)
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4433 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-07 13:50:08 +00:00
dolby-oss
3113f14e23
handling for delete exprs, and a test
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4432 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-02-06 13:54:10 +00:00
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
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
a2c146b2d8
New failing test case dead_phi
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4417 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:51:26 +00:00
msridhar1
c8c12436a7
Added test exposing a weird IR generation bug.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4415 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:50:52 +00:00
msridhar1
c18cc405f7
fix disabling of call / apply for ajaxslt test
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4408 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:48:53 +00:00
msridhar1
1f5c0996e5
re-enable ajaxslt test with call / apply handling disabled
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4406 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:48:14 +00:00
msridhar1
ea7be296c8
create JSAnalysisOptions, and use to add proper option to disable handling of call / apply
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4405 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:48:01 +00:00
msridhar1
a12194cc92
fix handling of Function.prototype.apply. Disable testAjaxslt, which blows up with the fix enabled
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4402 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:47:09 +00:00
msridhar1
b3f6bfb18c
better formatting
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4394 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:45:08 +00:00
msridhar1
082607327d
test case for bad recursion check bug
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4389 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:43:58 +00:00
msridhar1
13202e726e
Added test case for handling of arguments array.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4388 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:43:37 +00:00
msridhar1
e149af8a13
Some more tests.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4381 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:41:57 +00:00
msridhar1
ed37d9ee5d
another failing test case for scoping and closures
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4376 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:36:59 +00:00
msridhar1
ca1792a6b8
add unit test for recursive lexical scopes
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4373 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:36:10 +00:00
msridhar1
2dc375340a
Simplified test cases.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4365 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:34:14 +00:00
msridhar1
98f89876b1
Adding two simple regression tests.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4364 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:34:04 +00:00
msridhar1
9a3b4f3d8a
add missing assertion check
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4341 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:28:46 +00:00
msridhar1
3057d11607
stop dumping call graph in the MediaWiki test to speed things up; add a flag to Util to suppress call graph output in other cases
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4337 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:27:42 +00:00
msridhar1
610c7e252e
add a test for Function.apply() with the arguments array
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4336 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:27:21 +00:00
msridhar1
14c4cdb251
bug fix in SSAPropagationCallGraphBuilder: allow empty points-to sets for interesting non-receiver arguments
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4335 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:27:03 +00:00
msridhar1
c250331e78
more work on Function.apply(), but regression tests aren't passing yet
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4333 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:26:23 +00:00
msridhar1
a30ea94aac
support Function.apply() with no argsList array
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4332 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:26:01 +00:00
msridhar1
875347167b
started some work
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4331 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:25:38 +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
549c3d2775
rename
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4323 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:23:25 +00:00
msridhar1
306bc98bf5
progress on modeling the global object
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4321 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:22:58 +00:00
msridhar1
be1ead5245
additional modeling of prototype chains for built-in objects
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4320 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:22:27 +00:00
msridhar1
b042d61a67
initial implementation of handling Function.call(). also, fix previous change that caused some tests to fail
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4316 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:21:26 +00:00
msridhar1
c815519025
ignore jquery test; no longer works due to proper handling of || construct
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4315 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:20:55 +00:00
msridhar1
1673a200e5
default to dumping files in temp directory
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4312 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:20:13 +00:00
msridhar1
74911f269e
fix test case for Function.call(), add test case for Function.apply()
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4309 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:19:36 +00:00
msridhar1
c0a99989a4
Support for applying a preprocessor to the generated CAst tree before
...
translating it to IR.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4300 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2012-01-06 21:17:39 +00:00
msridhar1
cb37e60635
make classes abstract, so their tests are not run directly
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4287 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-10-31 18:47:14 +00:00
msridhar1
b5192e79a9
add another test
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4213 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-07-05 02:32:10 +00:00
msridhar1
e60b23edef
reduced the test case
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4212 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-07-04 22:14:07 +00:00
msridhar1
c316309900
add a test
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4211 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-07-04 21:21:29 +00:00
dolby-oss
a8e79f92aa
adapt to for...in context changes, and use new test
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4205 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-07-02 15:16:38 +00:00
dolby-oss
4d2b679f7f
new test case for function calls in the for...in body
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4204 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-07-02 15:16:01 +00:00
msridhar1
2b443852fc
pull out hacked for-in context selector. add some debugging output
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4200 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-07-01 16:48:18 +00:00
msridhar1
91628b4d1b
another failing test
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4187 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-06-22 16:04:48 +00:00
msridhar1
da183699ae
add failing test case
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4186 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-06-22 13:53:47 +00:00
dolby-oss
3e573a992d
upgrades to lexical soping implements to address some performance issues
...
fixes to HTML model to capture use of local vars as window state in scripts
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4176 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-05-23 16:27:07 +00:00
msridhar1
10849fcf78
add method for constructing an HTML CG with a progress monitor
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4175 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-05-06 15:14:32 +00:00
msridhar1
3a4fee83c4
test case for constructors and lexical accesses
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4172 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-05-05 03:52:26 +00:00
dolby-oss
7adce5daf7
change to dump api to make usable in other places, without a builder
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4160 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-28 19:08:06 +00:00
dolby-oss
4da02a9125
Changes to extend supported context sensitivity to CPA-style:
...
1) extend ContextSelector interface to allow it to specify parameters of interest
2) extend filtering mechanism at call sites to allow CPA-style filtering when requested by contexts
3) various related fixes and extensions:
a) removed redundant code to handle dispatch for JavaScript, so now it shares the core mechanism
b) tighten types for operators that take an array of args - now the array is T[] at the cost of a few array allocation methods
c) a bit more support for empty int sets
d) void function objects
e) bug fixes for lexical scoping support, and adaptation to work with core dispatch mechanism
f) example of CPA-style sensitivity to handle nastiness in a JavaScript for(.. in ...) loop
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4150 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-27 13:58:56 +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
59719046e4
javadoc, refactoring
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4138 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-22 18:14:41 +00:00
dolby-oss
ea4bbbd56a
commit missing tests
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4131 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-21 15:11:20 +00:00
msridhar1
18833137c0
Change Mozilla test cases to not pull in external JS files by default (for performance). In makeHTMLCG(), don't call dumpCG() by default.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4127 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-20 20:55:57 +00:00
msridhar1
816eed480f
Change Mozilla test cases to not pull in external JS files by default (for performance). In makeHTMLCG(), don't call dumpCG() by default.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4126 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-20 20:55:39 +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
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
e7ac8c25fe
move test with not-quite-correct JavaScript code to the Rhino test, since Rhino handles it anyway
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4106 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-05 16:42:49 +00:00
dolby-oss
bb28cd875f
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@4102 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-04 21:20:31 +00:00
dolby-oss
be5d9df4e9
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@4094 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-04-04 15:28:54 +00:00
msridhar1
ff2ab61e56
remove old script
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4071 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-03-10 22:01:10 +00:00
msridhar1
1a6053c990
grab external deps via ant
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4070 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-03-10 22:00:17 +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
cc99d4898e
another example from web pages for apollo
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4000 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-11-23 15:31:53 +00:00
dolby-oss
6afa3ee732
test that seems to exhibit null values of attributes from HTML
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3998 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-11-22 17:46:30 +00:00
dolby-oss
73ac8fc93b
more work and tests on Web page model
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3992 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-11-05 00:37:43 +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
yinnon_haviv
6157acd567
Fix stack overflow on long methods bug.
...
See test case for more details.
- Convert the problematic recursion (SEARCH of SSA conversion) into an "iterative" code (by introducing a stack data structure.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3961 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-10-02 20:53:31 +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
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
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
431c5510f3
minor name change
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3938 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-20 15:47:19 +00:00
dolby-oss
1f8da24940
add support for base urls
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3923 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-09 14:09:16 +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
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
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
dolby-oss
be8400fdd1
new tests, including for Web pages
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3628 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-03 18:27:08 +00:00
dolby-oss
c3769d5717
performance and other fixes driven by models of Web pages for JavaScript
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3562 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-05-04 14:11:31 +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
sjfink
9cba260448
minor cleanups
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3267 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-09 18:02:52 +00:00
sjfink
6e235228b1
Change DOMO to WALA
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3266 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-09 18:00:26 +00:00
sjfink
aeda43e97e
minor cleanups
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3265 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-09 17:59:09 +00:00
dolby-oss
159e25f52e
fixes for Rhino issue---ignoring multiple variables in a single var declaration
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3201 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-02-02 20:46:51 +00:00
dolby-oss
9979d0899c
more fixes to lexical scoping for JavaScript
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3196 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-01-30 16:33:22 +00:00
dolby-oss
c28e2386f4
update metadata
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3182 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-01-21 00:41:32 +00:00
sjfink
656c15b16c
remove unused import
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3178 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-01-19 19:37:53 +00:00
dolby-oss
8d3c76715c
misc. fixes motivated by JavaScript
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3175 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-01-19 15:12:39 +00:00
dolby-oss
637f06b2c0
further work on lexical scoping
...
more bug fixes for Anders
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3136 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-12-16 14:54:09 +00:00
dolby-oss
7be15e3137
additional test from Anders
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3112 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-12-02 14:09:49 +00:00
sjfink
dfad24c3ee
tweak code format
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2946 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-07-04 01:56:49 +00:00
sjfink
4142366236
tweak code format
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2903 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-06-25 14:08:57 +00:00
sjfink
4773a53b68
thread IProgressMonitor and CancelException through many APIs
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2577 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-02-13 22:34:36 +00:00
sjfink
c17b88a69f
tweak code format
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2371 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-01-11 16:51:21 +00:00
sjfink
a601002de1
nuke support for "dispatch bound" call graph construction heuristic
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2351 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-01-10 22:05:44 +00:00
sjfink
a9ec8071f7
tweak code formatting for enums
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2333 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-01-10 16:26:01 +00:00
sjfink
639d5d3aa4
tweak code formatting template
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2268 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-01-03 16:31:34 +00:00
sjfink
fbca81de76
revert code compliance level to 5.0
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2205 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-17 18:47:50 +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
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
sjfink
dab36d8d6f
add CancelException to interact with Eclipse progress monitors and thread it through some APIs
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2003 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-13 16:18:48 +00:00
dolby-oss
e6cceb103b
support for 1-CFA analysis
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1986 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-06 04:14:53 +00:00
sjfink
e6effa6909
bump up source level to 6.0
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1845 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-10-11 14:25:30 +00:00
sjfink
e7d9d74292
decouple IR caching from AnalysisOptions with a new AnalysisCache object
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1518 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-07-20 15:20:13 +00:00
sjfink
d6f9af13f3
use Hash factories everywhere
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1440 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-07-11 21:08:26 +00:00
sjfink
3afac56df2
massive overhaul of Warnings management
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1386 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-07-06 22:08:41 +00:00
sjfink
6a2d703907
miscellaneous housekeeping
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1367 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-07-06 03:07:32 +00:00
sjfink
3716538edd
fix Eclipse build path
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1248 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-06 03:01:51 +00:00
dolby-oss
90d49382b5
move call graph shape testing support for generic CAst test project
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1237 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-03 21:56:39 +00:00
dolby-oss
ba7b7b53ca
adapt to wala changes for cross-language call graphs
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1217 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-01 03:33:48 +00:00
sjfink
c205bc86f7
delete Entrypoints interface.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1128 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-15 17:45:03 +00:00
sjfink
603bf56043
share errors/warnings settings
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1084 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-07 13:28:45 +00:00
sjfink
1f52a37eb6
shared code formatter settings
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1067 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-07 13:21:01 +00:00
sjfink
8b1a9b1750
enable project-specific compiler settings
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1026 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-04-30 13:46:57 +00:00
mkogane
6d2bcbc92b
fix id and import plugin in plugin.xml
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@739 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-14 06:14:45 +00:00
sjfink
59e4629aa7
squash remaining Eclipse warnings
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@701 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-09 15:33:55 +00:00
sjfink
3b979958df
format
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@697 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-09 10:06:43 +00:00
sjfink
d6a858ef99
fix path, heap size
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@696 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-09 10:06:24 +00:00
dolby-oss
e89006e2c9
launch configurations for download scripts
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@691 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-08 20:38:35 +00:00
dolby-oss
8740d33179
added script to download needed tests
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@682 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-08 20:08:30 +00:00
sjfink
68772a686c
miscellaneous minor cleanups. eclipse build stuff. import statements.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@681 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-08 19:08:41 +00:00
dolby-oss
81fe889127
JUnit tests launch configurations
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@674 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-08 18:24:29 +00:00
dolby-oss
4a8223a5be
fixes to build.xml stuff
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@643 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-04 19:38:04 +00:00
dolby-oss
ed26cb625a
fix WebUtil test to use new pathname for ajaxslt
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@640 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-02 22:26:38 +00:00
dolby-oss
50fd961772
Initial contribution of core script analysis code
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@624 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-02 17:28:04 +00:00