hotspot/src/share/vm/opto/graphKit.cpp
changeset 9329 79c74b9e2afe
parent 9327 23532ae85295
child 9331 9a575ce594ed
--- a/hotspot/src/share/vm/opto/graphKit.cpp	Thu Apr 21 00:25:40 2011 -0700
+++ b/hotspot/src/share/vm/opto/graphKit.cpp	Mon Apr 25 16:25:58 2011 -0700
@@ -1033,14 +1033,10 @@
       iter.reset_to_bci(bci());
       iter.next();
       ciMethod* method = iter.get_method(ignore);
-      inputs = method->arg_size_no_receiver();
-      // Add a receiver argument, maybe:
-      if (code != Bytecodes::_invokestatic &&
-          code != Bytecodes::_invokedynamic)
-        inputs += 1;
       // (Do not use ciMethod::arg_size(), because
       // it might be an unloaded method, which doesn't
       // know whether it is static or not.)
+      inputs = method->invoke_arg_size(code);
       int size = method->return_type()->size();
       depth = size - inputs;
     }