equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
31 |
31 |
32 |
32 |
33 #ifndef PRODUCT |
33 #ifndef PRODUCT |
34 |
34 |
35 const char* InstructionPrinter::basic_type_name(BasicType type) { |
35 const char* InstructionPrinter::basic_type_name(BasicType type) { |
36 switch (type) { |
36 const char* n = type2name(type); |
37 case T_BOOLEAN: return "boolean"; |
37 if (n == NULL || type > T_VOID) { |
38 case T_BYTE : return "byte"; |
38 return "???"; |
39 case T_CHAR : return "char"; |
39 } |
40 case T_SHORT : return "short"; |
40 return n; |
41 case T_INT : return "int"; |
|
42 case T_LONG : return "long"; |
|
43 case T_FLOAT : return "float"; |
|
44 case T_DOUBLE : return "double"; |
|
45 case T_ARRAY : return "array"; |
|
46 case T_OBJECT : return "object"; |
|
47 default : return "???"; |
|
48 } |
|
49 } |
41 } |
50 |
42 |
51 |
43 |
52 const char* InstructionPrinter::cond_name(If::Condition cond) { |
44 const char* InstructionPrinter::cond_name(If::Condition cond) { |
53 switch (cond) { |
45 switch (cond) { |