< prev index next >

src/share/vm/ci/ciMethod.cpp

Print this page
rev 8910 : full patch for jfr
   1 /*
   2  * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


1450 // ciMethod::print_impl
1451 //
1452 // Implementation of the print method.
1453 void ciMethod::print_impl(outputStream* st) {
1454   ciMetadata::print_impl(st);
1455   st->print(" name=");
1456   name()->print_symbol_on(st);
1457   st->print(" holder=");
1458   holder()->print_name_on(st);
1459   st->print(" signature=");
1460   signature()->as_symbol()->print_symbol_on(st);
1461   if (is_loaded()) {
1462     st->print(" loaded=true");
1463     st->print(" arg_size=%d", arg_size());
1464     st->print(" flags=");
1465     flags().print_member_flags(st);
1466   } else {
1467     st->print(" loaded=false");
1468   }
1469 }










   1 /*
   2  * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


1450 // ciMethod::print_impl
1451 //
1452 // Implementation of the print method.
1453 void ciMethod::print_impl(outputStream* st) {
1454   ciMetadata::print_impl(st);
1455   st->print(" name=");
1456   name()->print_symbol_on(st);
1457   st->print(" holder=");
1458   holder()->print_name_on(st);
1459   st->print(" signature=");
1460   signature()->as_symbol()->print_symbol_on(st);
1461   if (is_loaded()) {
1462     st->print(" loaded=true");
1463     st->print(" arg_size=%d", arg_size());
1464     st->print(" flags=");
1465     flags().print_member_flags(st);
1466   } else {
1467     st->print(" loaded=false");
1468   }
1469 }
1470 
1471 #if INCLUDE_TRACE
1472 TraceStructCalleeMethod ciMethod::to_trace_struct() const {
1473   TraceStructCalleeMethod result;
1474   result.set_type(holder()->name()->as_utf8());
1475   result.set_name(name()->as_utf8());
1476   result.set_descriptor(signature()->as_symbol()->as_utf8());
1477   return result;
1478 }
1479 #endif
< prev index next >