diff src/share/vm/runtime/signature.cpp @ 12875:d13d7aba8c12

8023657: New type profiling points: arguments to call Summary: x86 interpreter and c1 type profiling for arguments at calls Reviewed-by: kvn, twisti
author roland
date Wed, 09 Oct 2013 16:32:21 +0200
parents 070d523b96a7
children de6a9e811145
line wrap: on
line diff
--- a/src/share/vm/runtime/signature.cpp	Wed Oct 09 11:05:17 2013 -0700
+++ b/src/share/vm/runtime/signature.cpp	Wed Oct 09 16:32:21 2013 +0200
@@ -378,6 +378,16 @@
   return result;
 }
 
+int SignatureStream::reference_parameter_count() {
+  int args_count = 0;
+  for ( ; !at_return_type(); next()) {
+    if (is_object()) {
+      args_count++;
+    }
+  }
+  return args_count;
+}
+
 bool SignatureVerifier::is_valid_signature(Symbol* sig) {
   const char* signature = (const char*)sig->bytes();
   ssize_t len = sig->utf8_length();