int CompiledRFrame::cost() const { CompiledMethod* nm = top_method()->code(); if (nm != NULL) { return nm->insts_size(); } else { return top_method()->code_size(); } }