< prev index next >

src/cpu/x86/vm/templateTable_x86.cpp

Print this page

        

@@ -3593,10 +3593,12 @@
 
   // profile this call
   __ profile_virtual_call(rax, rlocals, rdx);
   // get target Method* & entry point
   __ lookup_virtual_method(rax, index, method);
+  __ profile_called_method(method, rdx, rbcp);
+
   __ profile_arguments_type(rdx, method, rbcp, true);
   __ jump_from_interpreted(method, rdx);
 }
 
 void TemplateTable::invokevirtual(int byte_no) {

@@ -3692,10 +3694,11 @@
   //       interpreter entry point and a conditional jump to it in case of a null
   //       method.
   __ testptr(rbx, rbx);
   __ jcc(Assembler::zero, no_such_method);
 
+  __ profile_called_method(rbx, rbcp, rdx);
   __ profile_arguments_type(rdx, rbx, rbcp, true);
 
   // do the call
   // rcx: receiver
   // rbx,: Method*
< prev index next >