equal
deleted
inserted
replaced
57 bool JVMCIRuntime::_shutdown_called = false; |
57 bool JVMCIRuntime::_shutdown_called = false; |
58 |
58 |
59 static const char* OPTION_PREFIX = "jvmci.option."; |
59 static const char* OPTION_PREFIX = "jvmci.option."; |
60 static const size_t OPTION_PREFIX_LEN = strlen(OPTION_PREFIX); |
60 static const size_t OPTION_PREFIX_LEN = strlen(OPTION_PREFIX); |
61 |
61 |
62 BasicType JVMCIRuntime::kindToBasicType(jchar ch) { |
62 BasicType JVMCIRuntime::kindToBasicType(Handle kind, TRAPS) { |
|
63 if (kind.is_null()) { |
|
64 THROW_(vmSymbols::java_lang_NullPointerException(), T_ILLEGAL); |
|
65 } |
|
66 jchar ch = JavaKind::typeChar(kind); |
63 switch(ch) { |
67 switch(ch) { |
64 case 'z': return T_BOOLEAN; |
68 case 'z': return T_BOOLEAN; |
65 case 'b': return T_BYTE; |
69 case 'b': return T_BYTE; |
66 case 's': return T_SHORT; |
70 case 's': return T_SHORT; |
67 case 'c': return T_CHAR; |
71 case 'c': return T_CHAR; |
70 case 'j': return T_LONG; |
74 case 'j': return T_LONG; |
71 case 'd': return T_DOUBLE; |
75 case 'd': return T_DOUBLE; |
72 case 'a': return T_OBJECT; |
76 case 'a': return T_OBJECT; |
73 case '-': return T_ILLEGAL; |
77 case '-': return T_ILLEGAL; |
74 default: |
78 default: |
75 fatal("unexpected Kind: %c", ch); |
79 JVMCI_ERROR_(T_ILLEGAL, "unexpected Kind: %c", ch); |
76 break; |
80 } |
77 } |
|
78 return T_ILLEGAL; |
|
79 } |
81 } |
80 |
82 |
81 // Simple helper to see if the caller of a runtime stub which |
83 // Simple helper to see if the caller of a runtime stub which |
82 // entered the VM has been deoptimized |
84 // entered the VM has been deoptimized |
83 |
85 |