92 }
93 const char* as_klass_external_name() const;
94
95 // Make a ciSymbol from a C string.
96 // Consider adding to vmSymbols.hpp instead of using this constructor.
97 // (Your code will be less subject to typographical bugs.)
98 static ciSymbol* make(const char* s);
99
100 #define CI_SYMBOL_DECLARE(name, ignore_def) \
101 static ciSymbol* name() { return ciObjectFactory::vm_symbol_at(vmSymbols::VM_SYMBOL_ENUM_NAME(name)); }
102 VM_SYMBOLS_DO(CI_SYMBOL_DECLARE, CI_SYMBOL_DECLARE)
103 #undef CI_SYMBOL_DECLARE
104
105 void print() {
106 _symbol->print();
107 }
108
109 virtual bool is_symbol() const { return true; }
110
111 // Are two ciSymbols equal?
112 bool equals(ciSymbol* obj) { return this->_symbol == obj->get_symbol(); }
113
114 bool is_signature_polymorphic_name() const;
115 };
116
117 #endif // SHARE_VM_CI_CISYMBOL_HPP
|
92 }
93 const char* as_klass_external_name() const;
94
95 // Make a ciSymbol from a C string.
96 // Consider adding to vmSymbols.hpp instead of using this constructor.
97 // (Your code will be less subject to typographical bugs.)
98 static ciSymbol* make(const char* s);
99
100 #define CI_SYMBOL_DECLARE(name, ignore_def) \
101 static ciSymbol* name() { return ciObjectFactory::vm_symbol_at(vmSymbols::VM_SYMBOL_ENUM_NAME(name)); }
102 VM_SYMBOLS_DO(CI_SYMBOL_DECLARE, CI_SYMBOL_DECLARE)
103 #undef CI_SYMBOL_DECLARE
104
105 void print() {
106 _symbol->print();
107 }
108
109 virtual bool is_symbol() const { return true; }
110
111 // Are two ciSymbols equal?
112 bool equals(ciSymbol* obj) { return this->_symbol->equals(obj->get_symbol()); }
113
114 bool is_signature_polymorphic_name() const;
115 };
116
117 #endif // SHARE_VM_CI_CISYMBOL_HPP
|