diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2003-10-06 10:48:39 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2003-10-06 10:48:39 +0000 |
commit | d0add86d9763f89c88bafe7613ac5107d6bb949d (patch) | |
tree | 946e803a9c6f2876a4a550138c53fb63d6a061a9 /src/main/javassist/expr | |
parent | 93e8b3bf46875fd610f961b3fa529886ba6f99aa (diff) | |
download | javassist-d0add86d9763f89c88bafe7613ac5107d6bb949d.tar.gz javassist-d0add86d9763f89c88bafe7613ac5107d6bb949d.zip |
Improved the performance of $proceed when it represents a static method.
This change does not make any difference on WindowsXP but on Solaris/SPARC.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@48 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/expr')
-rw-r--r-- | src/main/javassist/expr/MethodCall.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/javassist/expr/MethodCall.java b/src/main/javassist/expr/MethodCall.java index 281697c2..9eee7fe9 100644 --- a/src/main/javassist/expr/MethodCall.java +++ b/src/main/javassist/expr/MethodCall.java @@ -196,7 +196,10 @@ public class MethodCall extends Expr { jc.recordParams(classname, params, true, paramVar, withinStatic()); int retVar = jc.recordReturnType(retType, true); - jc.recordProceed(Javac.param0Name, methodname); + if (c == INVOKESTATIC) + jc.recordStaticProceed(classname, methodname); + else + jc.recordProceed(Javac.param0Name, methodname); /* Is $_ included in the source code? */ |