Bug 343978

Summary: optimize for certain cases of thisJoinPoint usage
Product: [Tools] AspectJ Reporter: Andrew Clement <aclement>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.6.11   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andrew Clement CLA 2011-04-27 11:09:10 EDT
For the simple (common) case of some advice calling 'thisJoinPoint.getTarget()' or similar, we could avoid building the entire tjp object at the jp location.  If we say the optimization isn't allowed if you:

- assign tjp to something in the advice
- pass tjp onto another method

then I still think we'd cover a lot of scenarios.  Building the array of arguments is probably very expensive and if not used in the advice, that is a big waste.