< prev index next >

src/hotspot/share/ci/ciSymbol.cpp

Print this page
   1 /*
   2  * Copyright (c) 1999, 2018, 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  *


  85 bool ciSymbol::starts_with(const char* prefix, int len) const {
  86   GUARDED_VM_ENTRY(return get_symbol()->starts_with(prefix, len);)
  87 }
  88 
  89 bool ciSymbol::is_signature_polymorphic_name()  const {
  90   GUARDED_VM_ENTRY(return MethodHandles::is_signature_polymorphic_name(get_symbol());)
  91 }
  92 
  93 // ------------------------------------------------------------------
  94 // ciSymbol::index_of
  95 //
  96 // Determines where the symbol contains the given substring.
  97 int ciSymbol::index_of_at(int i, const char* str, int len) const {
  98   GUARDED_VM_ENTRY(return get_symbol()->index_of_at(i, str, len);)
  99 }
 100 
 101 // ------------------------------------------------------------------
 102 // ciSymbol::utf8_length
 103 int ciSymbol::utf8_length() {
 104   GUARDED_VM_ENTRY(return get_symbol()->utf8_length();)






 105 }
 106 
 107 // ------------------------------------------------------------------
 108 // ciSymbol::print_impl
 109 //
 110 // Implementation of the print method
 111 void ciSymbol::print_impl(outputStream* st) {
 112   st->print(" value=");
 113   print_symbol_on(st);
 114 }
 115 
 116 // ------------------------------------------------------------------
 117 // ciSymbol::print_symbol_on
 118 //
 119 // Print the value of this symbol on an outputStream
 120 void ciSymbol::print_symbol_on(outputStream *st) {
 121   GUARDED_VM_ENTRY(get_symbol()->print_symbol_on(st);)
 122 }
 123 
 124 const char* ciSymbol::as_klass_external_name() const {


   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  *


  85 bool ciSymbol::starts_with(const char* prefix, int len) const {
  86   GUARDED_VM_ENTRY(return get_symbol()->starts_with(prefix, len);)
  87 }
  88 
  89 bool ciSymbol::is_signature_polymorphic_name()  const {
  90   GUARDED_VM_ENTRY(return MethodHandles::is_signature_polymorphic_name(get_symbol());)
  91 }
  92 
  93 // ------------------------------------------------------------------
  94 // ciSymbol::index_of
  95 //
  96 // Determines where the symbol contains the given substring.
  97 int ciSymbol::index_of_at(int i, const char* str, int len) const {
  98   GUARDED_VM_ENTRY(return get_symbol()->index_of_at(i, str, len);)
  99 }
 100 
 101 // ------------------------------------------------------------------
 102 // ciSymbol::utf8_length
 103 int ciSymbol::utf8_length() {
 104   GUARDED_VM_ENTRY(return get_symbol()->utf8_length();)
 105 }
 106 
 107 // ------------------------------------------------------------------
 108 // ciSymbol::is_Q_signature
 109 bool ciSymbol::is_Q_signature() {
 110   GUARDED_VM_ENTRY(return get_symbol()->is_Q_signature();)
 111 }
 112 
 113 // ------------------------------------------------------------------
 114 // ciSymbol::print_impl
 115 //
 116 // Implementation of the print method
 117 void ciSymbol::print_impl(outputStream* st) {
 118   st->print(" value=");
 119   print_symbol_on(st);
 120 }
 121 
 122 // ------------------------------------------------------------------
 123 // ciSymbol::print_symbol_on
 124 //
 125 // Print the value of this symbol on an outputStream
 126 void ciSymbol::print_symbol_on(outputStream *st) {
 127   GUARDED_VM_ENTRY(get_symbol()->print_symbol_on(st);)
 128 }
 129 
 130 const char* ciSymbol::as_klass_external_name() const {


< prev index next >