src/share/classes/com/sun/tools/javac/jvm/Gen.java

changeset 1676
e9d986381414
parent 1670
29c6984a1673
child 1755
ddb4a2bfcd82
equal deleted inserted replaced
1675:b54122b9372d 1676:e9d986381414
1746 // Generate code for method. 1746 // Generate code for method.
1747 Item m = genExpr(tree.meth, methodType); 1747 Item m = genExpr(tree.meth, methodType);
1748 // Generate code for all arguments, where the expected types are 1748 // Generate code for all arguments, where the expected types are
1749 // the parameters of the method's external type (that is, any implicit 1749 // the parameters of the method's external type (that is, any implicit
1750 // outer instance of a super(...) call appears as first parameter). 1750 // outer instance of a super(...) call appears as first parameter).
1751 MethodSymbol msym = (MethodSymbol)TreeInfo.symbol(tree.meth);
1751 genArgs(tree.args, 1752 genArgs(tree.args,
1752 TreeInfo.symbol(tree.meth).externalType(types).getParameterTypes()); 1753 msym.externalType(types).getParameterTypes());
1753 code.statBegin(tree.pos); 1754 if (!msym.isDynamic()) {
1754 code.markStatBegin(); 1755 code.statBegin(tree.pos);
1756 code.markStatBegin();
1757 }
1755 result = m.invoke(); 1758 result = m.invoke();
1756 } 1759 }
1757 1760
1758 public void visitConditional(JCConditional tree) { 1761 public void visitConditional(JCConditional tree) {
1759 Chain thenExit = null; 1762 Chain thenExit = null;

mercurial