63
64 // ------------------------------------------------------------------
65 // ciSymbol::base
66 const u1* ciSymbol::base() {
67 GUARDED_VM_ENTRY(return get_symbol()->base();)
68 }
69
70 // ------------------------------------------------------------------
71 // ciSymbol::char_at
72 char ciSymbol::char_at(int i) {
73 GUARDED_VM_ENTRY(return get_symbol()->char_at(i);)
74 }
75
76 // ------------------------------------------------------------------
77 // ciSymbol::starts_with
78 //
79 // Tests if the symbol starts with the given prefix.
80 bool ciSymbol::starts_with(const char* prefix, int len) const {
81 GUARDED_VM_ENTRY(return get_symbol()->starts_with(prefix, len);)
82 }
83
84 bool ciSymbol::is_signature_polymorphic_name() const {
85 GUARDED_VM_ENTRY(return MethodHandles::is_signature_polymorphic_name(get_symbol());)
86 }
87
88 // ------------------------------------------------------------------
89 // ciSymbol::index_of
90 //
91 // Determines where the symbol contains the given substring.
92 int ciSymbol::index_of_at(int i, const char* str, int len) const {
93 GUARDED_VM_ENTRY(return get_symbol()->index_of_at(i, str, len);)
94 }
95
96 // ------------------------------------------------------------------
97 // ciSymbol::utf8_length
98 int ciSymbol::utf8_length() {
99 GUARDED_VM_ENTRY(return get_symbol()->utf8_length();)
100 }
101
102 // ------------------------------------------------------------------
103 // ciSymbol::print_impl
104 //
105 // Implementation of the print method
106 void ciSymbol::print_impl(outputStream* st) {
107 st->print(" value=");
108 print_symbol_on(st);
109 }
110
111 // ------------------------------------------------------------------
112 // ciSymbol::print_symbol_on
113 //
114 // Print the value of this symbol on an outputStream
115 void ciSymbol::print_symbol_on(outputStream *st) {
116 GUARDED_VM_ENTRY(get_symbol()->print_symbol_on(st);)
117 }
118
119 const char* ciSymbol::as_klass_external_name() const {
120 GUARDED_VM_ENTRY(return get_symbol()->as_klass_external_name(););
121 }
|
63
64 // ------------------------------------------------------------------
65 // ciSymbol::base
66 const u1* ciSymbol::base() {
67 GUARDED_VM_ENTRY(return get_symbol()->base();)
68 }
69
70 // ------------------------------------------------------------------
71 // ciSymbol::char_at
72 char ciSymbol::char_at(int i) {
73 GUARDED_VM_ENTRY(return get_symbol()->char_at(i);)
74 }
75
76 // ------------------------------------------------------------------
77 // ciSymbol::starts_with
78 //
79 // Tests if the symbol starts with the given prefix.
80 bool ciSymbol::starts_with(const char* prefix, int len) const {
81 GUARDED_VM_ENTRY(return get_symbol()->starts_with(prefix, len);)
82 }
83 bool ciSymbol::starts_with(char prefix_char) const {
84 GUARDED_VM_ENTRY(return get_symbol()->starts_with(prefix_char);)
85 }
86
87 // ------------------------------------------------------------------
88 // ciSymbol::ends_with
89 //
90 // Tests if the symbol ends with the given suffix.
91 bool ciSymbol::ends_with(const char* suffix, int len) const {
92 GUARDED_VM_ENTRY(return get_symbol()->ends_with(suffix, len);)
93 }
94 bool ciSymbol::ends_with(char suffix_char) const {
95 GUARDED_VM_ENTRY(return get_symbol()->ends_with(suffix_char);)
96 }
97
98 bool ciSymbol::is_signature_polymorphic_name() const {
99 GUARDED_VM_ENTRY(return MethodHandles::is_signature_polymorphic_name(get_symbol());)
100 }
101
102 // ------------------------------------------------------------------
103 // ciSymbol::index_of
104 //
105 // Determines where the symbol contains the given substring.
106 int ciSymbol::index_of_at(int i, const char* str, int len) const {
107 GUARDED_VM_ENTRY(return get_symbol()->index_of_at(i, str, len);)
108 }
109
110 // ------------------------------------------------------------------
111 // ciSymbol::utf8_length
112 int ciSymbol::utf8_length() {
113 GUARDED_VM_ENTRY(return get_symbol()->utf8_length();)
114 }
115
116 // ------------------------------------------------------------------
117 // ciSymbol::is_Q_signature
118 bool ciSymbol::is_Q_signature() const {
119 GUARDED_VM_ENTRY(return get_symbol()->is_Q_signature();)
120 }
121
122 // ------------------------------------------------------------------
123 // ciSymbol::is_Q_array_signature
124 bool ciSymbol::is_Q_array_signature() const {
125 GUARDED_VM_ENTRY(return get_symbol()->is_Q_array_signature();)
126 }
127
128 // ------------------------------------------------------------------
129 // ciSymbol::print_impl
130 //
131 // Implementation of the print method
132 void ciSymbol::print_impl(outputStream* st) {
133 st->print(" value=");
134 print_symbol_on(st);
135 }
136
137 // ------------------------------------------------------------------
138 // ciSymbol::print_symbol_on
139 //
140 // Print the value of this symbol on an outputStream
141 void ciSymbol::print_symbol_on(outputStream *st) {
142 GUARDED_VM_ENTRY(get_symbol()->print_symbol_on(st);)
143 }
144
145 const char* ciSymbol::as_klass_external_name() const {
146 GUARDED_VM_ENTRY(return get_symbol()->as_klass_external_name(););
147 }
|