Mercurial > hg > truffle
comparison src/share/vm/runtime/rframe.cpp @ 1748:3e8fbc61cee8
6978355: renaming for 6961697
Summary: This is the renaming part of 6961697 to keep the actual changes small for review.
Reviewed-by: kvn, never
author | twisti |
---|---|
date | Wed, 25 Aug 2010 05:27:54 -0700 |
parents | c18cbe5936b8 |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1747:53dbe853fb3a | 1748:3e8fbc61cee8 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. 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. |
118 } | 118 } |
119 | 119 |
120 int CompiledRFrame::cost() const { | 120 int CompiledRFrame::cost() const { |
121 nmethod* nm = top_method()->code(); | 121 nmethod* nm = top_method()->code(); |
122 if (nm != NULL) { | 122 if (nm != NULL) { |
123 return nm->code_size(); | 123 return nm->insts_size(); |
124 } else { | 124 } else { |
125 return top_method()->code_size(); | 125 return top_method()->code_size(); |
126 } | 126 } |
127 } | 127 } |
128 | 128 |