mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8231844: Enhance type signature characters in classfile_constants.h and improve the JVM to use type signature characters more consistently
Increase the use of type signature constants instead of hard coded characters within the JVM. Co-authored-by: John Rose <john.r.rose@oracle.com> Reviewed-by: coleenp, dholmes, fparain
This commit is contained in:
parent
0192c5a02f
commit
fce4320369
43 changed files with 371 additions and 326 deletions
|
@ -1249,15 +1249,15 @@ JRT_ENTRY(void, InterpreterRuntime::post_field_modification(JavaThread *thread,
|
|||
char sig_type = '\0';
|
||||
|
||||
switch(cp_entry->flag_state()) {
|
||||
case btos: sig_type = 'B'; break;
|
||||
case ztos: sig_type = 'Z'; break;
|
||||
case ctos: sig_type = 'C'; break;
|
||||
case stos: sig_type = 'S'; break;
|
||||
case itos: sig_type = 'I'; break;
|
||||
case ftos: sig_type = 'F'; break;
|
||||
case atos: sig_type = 'L'; break;
|
||||
case ltos: sig_type = 'J'; break;
|
||||
case dtos: sig_type = 'D'; break;
|
||||
case btos: sig_type = JVM_SIGNATURE_BYTE; break;
|
||||
case ztos: sig_type = JVM_SIGNATURE_BOOLEAN; break;
|
||||
case ctos: sig_type = JVM_SIGNATURE_CHAR; break;
|
||||
case stos: sig_type = JVM_SIGNATURE_SHORT; break;
|
||||
case itos: sig_type = JVM_SIGNATURE_INT; break;
|
||||
case ftos: sig_type = JVM_SIGNATURE_FLOAT; break;
|
||||
case atos: sig_type = JVM_SIGNATURE_CLASS; break;
|
||||
case ltos: sig_type = JVM_SIGNATURE_LONG; break;
|
||||
case dtos: sig_type = JVM_SIGNATURE_DOUBLE; break;
|
||||
default: ShouldNotReachHere(); return;
|
||||
}
|
||||
bool is_static = (obj == NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue