Mercurial > hg > truffle
comparison src/share/vm/opto/doCall.cpp @ 1251:576e77447e3c
6923002: assert(false,"this call site should not be polymorphic")
Summary: Clear the total count when a receiver information is cleared.
Reviewed-by: never, jrose
author | kvn |
---|---|
date | Sun, 07 Feb 2010 12:15:06 -0800 |
parents | 87684f1a88b5 |
children | fdd57634910e |
comparison
equal
deleted
inserted
replaced
1250:3f5b7efb9642 | 1251:576e77447e3c |
---|---|
1 /* | 1 /* |
2 * Copyright 1998-2009 Sun Microsystems, Inc. All Rights Reserved. | 2 * Copyright 1998-2010 Sun Microsystems, Inc. All Rights Reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
68 } | 68 } |
69 | 69 |
70 CompileLog* log = this->log(); | 70 CompileLog* log = this->log(); |
71 if (log != NULL) { | 71 if (log != NULL) { |
72 int rid = (receiver_count >= 0)? log->identify(profile.receiver(0)): -1; | 72 int rid = (receiver_count >= 0)? log->identify(profile.receiver(0)): -1; |
73 int r2id = (profile.morphism() == 2)? log->identify(profile.receiver(1)):-1; | 73 int r2id = (rid != -1 && profile.has_receiver(1))? log->identify(profile.receiver(1)):-1; |
74 log->begin_elem("call method='%d' count='%d' prof_factor='%g'", | 74 log->begin_elem("call method='%d' count='%d' prof_factor='%g'", |
75 log->identify(call_method), site_count, prof_factor); | 75 log->identify(call_method), site_count, prof_factor); |
76 if (call_is_virtual) log->print(" virtual='1'"); | 76 if (call_is_virtual) log->print(" virtual='1'"); |
77 if (allow_inline) log->print(" inline='1'"); | 77 if (allow_inline) log->print(" inline='1'"); |
78 if (receiver_count >= 0) { | 78 if (receiver_count >= 0) { |