Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/method.cpp @ 10265:92ef81e2f571
8003557: NPG: Klass* const k should be const Klass* k.
Summary: With NPG, const KlassOop klass which is in fact a definition converted to Klass* const, which is not the original intention. The right usage is converting them to const Klass*.
Reviewed-by: coleenp, kvn
Contributed-by: yumin.qi@oracle.com
author | minqi |
---|---|
date | Fri, 10 May 2013 08:27:30 -0700 |
parents | 0cfa93c2fcc4 |
children | e484fe2abebd |
comparison
equal
deleted
inserted
replaced
10262:c272092594bd | 10265:92ef81e2f571 |
---|---|
1579 return (mcs == NULL) ? 0 : mcs->backedge_counter()->count(); | 1579 return (mcs == NULL) ? 0 : mcs->backedge_counter()->count(); |
1580 } | 1580 } |
1581 } | 1581 } |
1582 | 1582 |
1583 int Method::highest_comp_level() const { | 1583 int Method::highest_comp_level() const { |
1584 MethodData* mdo = method_data(); | 1584 const MethodData* mdo = method_data(); |
1585 if (mdo != NULL) { | 1585 if (mdo != NULL) { |
1586 return mdo->highest_comp_level(); | 1586 return mdo->highest_comp_level(); |
1587 } else { | 1587 } else { |
1588 return CompLevel_none; | 1588 return CompLevel_none; |
1589 } | 1589 } |
1590 } | 1590 } |
1591 | 1591 |
1592 int Method::highest_osr_comp_level() const { | 1592 int Method::highest_osr_comp_level() const { |
1593 MethodData* mdo = method_data(); | 1593 const MethodData* mdo = method_data(); |
1594 if (mdo != NULL) { | 1594 if (mdo != NULL) { |
1595 return mdo->highest_osr_comp_level(); | 1595 return mdo->highest_osr_comp_level(); |
1596 } else { | 1596 } else { |
1597 return CompLevel_none; | 1597 return CompLevel_none; |
1598 } | 1598 } |