mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8253402: Convert vmSymbols::SID to enum class
Reviewed-by: kvn, coleenp, kbarrett, iveresov
This commit is contained in:
parent
038f58d4f0
commit
7e5eb493e1
29 changed files with 654 additions and 320 deletions
|
@ -29,7 +29,9 @@
|
|||
#include "jvmtifiles/jvmti.h"
|
||||
#include "oops/oop.hpp"
|
||||
#include "oops/instanceKlass.hpp"
|
||||
#include "oops/symbol.hpp"
|
||||
#include "runtime/os.hpp"
|
||||
#include "utilities/vmEnums.hpp"
|
||||
|
||||
class RecordComponent;
|
||||
|
||||
|
@ -1699,8 +1701,8 @@ class java_lang_InternalError : AllStatic {
|
|||
class InjectedField {
|
||||
public:
|
||||
const SystemDictionary::WKID klass_id;
|
||||
const vmSymbols::SID name_index;
|
||||
const vmSymbols::SID signature_index;
|
||||
const vmSymbolID name_index;
|
||||
const vmSymbolID signature_index;
|
||||
const bool may_be_java;
|
||||
|
||||
|
||||
|
@ -1711,8 +1713,8 @@ class InjectedField {
|
|||
int compute_offset();
|
||||
|
||||
// Find the Symbol for this index
|
||||
static Symbol* lookup_symbol(int symbol_index) {
|
||||
return vmSymbols::symbol_at((vmSymbols::SID)symbol_index);
|
||||
static Symbol* lookup_symbol(vmSymbolID symbol_index) {
|
||||
return Symbol::vm_symbol_at(symbol_index);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue