1.1 --- a/src/share/vm/runtime/sharedRuntime.cpp Wed Apr 27 01:25:04 2016 +0800 1.2 +++ b/src/share/vm/runtime/sharedRuntime.cpp Fri Apr 29 00:06:10 2016 +0800 1.3 @@ -22,6 +22,12 @@ 1.4 * 1.5 */ 1.6 1.7 +/* 1.8 + * This file has been modified by Loongson Technology in 2015. These 1.9 + * modifications are Copyright (c) 2015 Loongson Technology, and are made 1.10 + * available on the same license terms set forth above. 1.11 + */ 1.12 + 1.13 #include "precompiled.hpp" 1.14 #include "classfile/systemDictionary.hpp" 1.15 #include "classfile/vmSymbols.hpp" 1.16 @@ -78,6 +84,11 @@ 1.17 # include "nativeInst_ppc.hpp" 1.18 # include "vmreg_ppc.inline.hpp" 1.19 #endif 1.20 +#ifdef TARGET_ARCH_mips 1.21 +# include "nativeInst_mips.hpp" 1.22 +# include "vmreg_mips.inline.hpp" 1.23 +#endif 1.24 + 1.25 #ifdef COMPILER1 1.26 #include "c1/c1_Runtime1.hpp" 1.27 #endif 1.28 @@ -216,6 +227,33 @@ 1.29 } 1.30 } 1.31 #endif // PRODUCT 1.32 +void SharedRuntime::print_long(long long i) { 1.33 + tty->print("%llx", i); 1.34 +} 1.35 + 1.36 +void SharedRuntime::print_int(int i) { 1.37 + tty->print("%x", i); 1.38 +} 1.39 + 1.40 +void SharedRuntime::print_float(float f) { 1.41 + tty->print("ld:%ld ", f); 1.42 + tty->print("lx:%lx ", f); 1.43 + tty->print("lf:%g ", f); 1.44 +} 1.45 + 1.46 +void SharedRuntime::print_double(double f) { 1.47 + tty->print("%ld ", f); 1.48 + tty->print("0x%lx ", f); 1.49 + tty->print("%g ", f); 1.50 +} 1.51 + 1.52 +void SharedRuntime::print_str(char *str) { 1.53 + tty->print("%s", str); 1.54 +} 1.55 + 1.56 +void SharedRuntime::print_reg_with_pc(char *reg_name, long i, long pc) { 1.57 + tty->print_cr("%s: %lx pc: %lx", reg_name, i, pc); 1.58 +} 1.59 1.60 #if INCLUDE_ALL_GCS 1.61