Commit Graph

160 Commits

Author SHA1 Message Date
msridhar1 59e46916ce Generalize certain IR data structures to be less Java-specific. Generalize annotations code to allow for reading annotation parameters. Various other fixes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4290 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-12-28 17:03:27 +00:00
msridhar1 82d751a814 try to fix javac compile errors
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4226 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-07-22 17:06:09 +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 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 e33b9d3861 fix comment
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4075 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-03-21 16:03:36 +00:00
dolby-oss 5a042f3f69 tighten typing for NumberedGraph, using covariance as allowed as of java 1.5
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4042 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-01-20 16:46:53 +00:00
sjfink 6bd8363503 refactor to isolate core utilities from dependence on Eclipse IProgressMonitor
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4034 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-01-17 22:06:58 +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 f13e059144 make constructor protected, as it is the superclass
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3983 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-10-20 15:13:42 +00:00
dolby-oss 8deb9a2814 fix really silly error
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3845 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-05-20 15:53:42 +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 00871016cb adapt to checkcast change
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3817 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-04-28 19:33:34 +00:00
sjfink 0b0ea23484 delete deprecated classes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3760 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-11-13 18:01:19 +00:00
sjfink 9ad3177a9f tweak some comments
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3758 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-11-13 16:25:55 +00:00
sjfink a26c27be44 fix generic types on EdgeManager.getPredNodes and getSuccNodes. finally.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3707 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-26 14:14:21 +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
sjfink 43dc62ccf8 deprecate unused code
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3666 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-12 14:59:47 +00:00
sjfink ed84b26483 tweak comments
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3663 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-12 14:44:59 +00:00
sjfink 7093e8fac6 tweak comments
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3662 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-12 14:41:28 +00:00
sjfink 7514b284fc tweak comment
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3660 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-12 14:39:19 +00:00
dolby-oss 82ed481890 guard against null in a couple of places
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3647 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-12 13:16:05 +00:00
dolby-oss 40d8dab1df make comparisons return the int type
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3637 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-04 16:38:51 +00:00
dolby-oss f8061f5e3a fix to bug not initializing primitive type table for java
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3635 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-04 11:38:20 +00:00
pistoia e41d024bed removed unused import
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3634 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-04 09:27:04 +00:00
dolby-oss e85f813477 work on generalizing type inference
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3625 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-03 18:24:46 +00:00
omertripp 093cc5a927 FEAT: - type inference is now language-agnostic.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3600 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-05-19 20:30:32 +00:00
sjfink de6adbc4d7 more migration to Java assertions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3559 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-05-01 17:42:28 +00:00
sjfink 17c2aa7588 remove unnecessary ClassHierarchyExceptions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3558 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-05-01 13:04:33 +00:00
sjfink 948dab4d0d remove ClassHierarchyException from IClass.getAllMethods
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3557 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-05-01 12:50:17 +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 4a491686bd support for pop(0) as no-op
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3548 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-30 02:03:12 +00:00
sjfink 829145e97b Nuke ClassHierarchyException from IClass.getSuperclass()
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3539 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-28 19:52:34 +00:00
sjfink 565532c7ff comments and formatting
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3523 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-22 19:12:11 +00:00
sjfink 04722c0331 comments and imports
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3478 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-17 20:01:35 +00:00
sjfink 77101da20f misc. cleanups
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3434 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-10 19:48:32 +00:00
dolby-oss e80dc6ef8c refactor handling of constants in Shrike to abstract away from Java bytecode
introduce factories to create SSAInstruction objects


git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3433 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-10 18:33:07 +00:00
sjfink 957cb2b8ca deprecate Trace
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3432 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-09 20:31:14 +00:00
sjfink 93411336ba misc. small fixes and documentation
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3372 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-26 20:56:08 +00:00
dolby-oss 2e65395044 further shrike-related refactoring
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3365 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-24 17:07:44 +00:00
sjfink 4472b30826 more IllegalArgumentExceptions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3279 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-11 17:44:29 +00:00
sjfink f63e374a4b more IllegalArgumentExceptions. a few small bug fixes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3278 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-11 16:57:32 +00:00
dolby-oss 1b1c7f2b3f further Shrike refactoring to generalize instructions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3274 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-11 13:33:00 +00:00
sjfink 4d1f7ab35f more IllegalArgumentExceptions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3272 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-10 21:18:07 +00:00
dolby-oss aad54f7abc further Shrike refactoring to generalize instructions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3241 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-02-26 16:50:52 +00:00
dolby-oss b61135c8be adapt to Shrike changes: divorce SSAInstruction from the Shrike Instruction, which requires adding a type parameter to ControlFlowGraph and propagating that change. Also, stop using the JVML opcode in a few places where it was (unnecessarily) being used.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3227 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-02-19 15:58:31 +00:00
msridhar1 92ffa60892 disable handling of java.lang.Class methods when Method.invoke handling is disabled
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3222 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-02-13 15:06:17 +00:00
msridhar1 57a26b5914 allow for some limited number of passes of flow-to-cast analysis
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3213 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-02-05 19:32:08 +00:00
msridhar1 b0db1e6628 introduce more preferences for reflection handling during call graph building
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3212 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-02-04 19:04:44 +00:00
msridhar1 73761d0a8f small optimization / cleanup
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3211 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-02-04 19:03:47 +00:00
msridhar1 1b17786512 when reflection handling is disabled in the AnalysisOptions, disable stuff like handling of string constant arguments to reflective methods, etc.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3209 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-02-03 20:38:47 +00:00