1.1 --- a/src/share/vm/c1/c1_InstructionPrinter.cpp Thu Sep 02 11:40:02 2010 -0700 1.2 +++ b/src/share/vm/c1/c1_InstructionPrinter.cpp Fri Sep 03 17:51:07 2010 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -819,7 +819,6 @@ 1.11 output()->put(')'); 1.12 } 1.13 1.14 - 1.15 void InstructionPrinter::do_ProfileCall(ProfileCall* x) { 1.16 output()->print("profile "); 1.17 print_value(x->recv()); 1.18 @@ -831,20 +830,11 @@ 1.19 output()->put(')'); 1.20 } 1.21 1.22 +void InstructionPrinter::do_ProfileInvoke(ProfileInvoke* x) { 1.23 + output()->print("profile_invoke "); 1.24 + output()->print(" %s.%s", x->inlinee()->holder()->name()->as_utf8(), x->inlinee()->name()->as_utf8()); 1.25 + output()->put(')'); 1.26 1.27 -void InstructionPrinter::do_ProfileCounter(ProfileCounter* x) { 1.28 - 1.29 - ObjectConstant* oc = x->mdo()->type()->as_ObjectConstant(); 1.30 - if (oc != NULL && oc->value()->is_method() && 1.31 - x->offset() == methodOopDesc::interpreter_invocation_counter_offset_in_bytes()) { 1.32 - print_value(x->mdo()); 1.33 - output()->print(".interpreter_invocation_count += %d", x->increment()); 1.34 - } else { 1.35 - output()->print("counter ["); 1.36 - print_value(x->mdo()); 1.37 - output()->print(" + %d] += %d", x->offset(), x->increment()); 1.38 - } 1.39 } 1.40 1.41 - 1.42 #endif // PRODUCT