hotspot/src/share/vm/runtime/rframe.cpp
changeset 6418 6671edbd230e
parent 5547 f4b087cbb361
child 7397 5b173b4ca846
equal deleted inserted replaced
6417:82e8f98f22d8 6418:6671edbd230e
     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