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 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "incls/_precompiled.incl" 26 #include "incls/_c1_InstructionPrinter.cpp.incl" 27 28 29 #ifndef PRODUCT 30 31 const char* InstructionPrinter::basic_type_name(BasicType type) { 32 switch (type) { 33 case T_BOOLEAN: return "boolean"; 34 case T_BYTE : return "byte"; 35 case T_CHAR : return "char"; 36 case T_SHORT : return "short"; 37 case T_INT : return "int"; 38 case T_LONG : return "long"; 39 case T_FLOAT : return "float"; 40 case T_DOUBLE : return "double"; 41 case T_ARRAY : return "array"; 42 case T_OBJECT : return "object"; 43 default : return "???"; 44 } 45 } 46 | 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 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "c1/c1_InstructionPrinter.hpp" 27 #include "c1/c1_ValueStack.hpp" 28 #include "ci/ciArray.hpp" 29 #include "ci/ciInstance.hpp" 30 #include "ci/ciObject.hpp" 31 32 33 #ifndef PRODUCT 34 35 const char* InstructionPrinter::basic_type_name(BasicType type) { 36 switch (type) { 37 case T_BOOLEAN: return "boolean"; 38 case T_BYTE : return "byte"; 39 case T_CHAR : return "char"; 40 case T_SHORT : return "short"; 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 } 50 |