18 * |
18 * |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
|
23 */ |
|
24 |
|
25 /* |
|
26 * This file has been modified by Loongson Technology in 2015. These |
|
27 * modifications are Copyright (c) 2015 Loongson Technology, and are made |
|
28 * available on the same license terms set forth above. |
23 */ |
29 */ |
24 |
30 |
25 #include "precompiled.hpp" |
31 #include "precompiled.hpp" |
26 #include "classfile/systemDictionary.hpp" |
32 #include "classfile/systemDictionary.hpp" |
27 #include "classfile/vmSymbols.hpp" |
33 #include "classfile/vmSymbols.hpp" |
76 #endif |
82 #endif |
77 #ifdef TARGET_ARCH_ppc |
83 #ifdef TARGET_ARCH_ppc |
78 # include "nativeInst_ppc.hpp" |
84 # include "nativeInst_ppc.hpp" |
79 # include "vmreg_ppc.inline.hpp" |
85 # include "vmreg_ppc.inline.hpp" |
80 #endif |
86 #endif |
|
87 #ifdef TARGET_ARCH_mips |
|
88 # include "nativeInst_mips.hpp" |
|
89 # include "vmreg_mips.inline.hpp" |
|
90 #endif |
|
91 |
81 #ifdef COMPILER1 |
92 #ifdef COMPILER1 |
82 #include "c1/c1_Runtime1.hpp" |
93 #include "c1/c1_Runtime1.hpp" |
83 #endif |
94 #endif |
84 |
95 |
85 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
96 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
214 } |
225 } |
215 tty->print_cr ("Total IC misses: %7d", tot_misses); |
226 tty->print_cr ("Total IC misses: %7d", tot_misses); |
216 } |
227 } |
217 } |
228 } |
218 #endif // PRODUCT |
229 #endif // PRODUCT |
|
230 void SharedRuntime::print_long(long long i) { |
|
231 tty->print("%llx", i); |
|
232 } |
|
233 |
|
234 void SharedRuntime::print_int(int i) { |
|
235 tty->print("%x", i); |
|
236 } |
|
237 |
|
238 void SharedRuntime::print_float(float f) { |
|
239 tty->print("ld:%ld ", f); |
|
240 tty->print("lx:%lx ", f); |
|
241 tty->print("lf:%g ", f); |
|
242 } |
|
243 |
|
244 void SharedRuntime::print_double(double f) { |
|
245 tty->print("%ld ", f); |
|
246 tty->print("0x%lx ", f); |
|
247 tty->print("%g ", f); |
|
248 } |
|
249 |
|
250 void SharedRuntime::print_str(char *str) { |
|
251 tty->print("%s", str); |
|
252 } |
|
253 |
|
254 void SharedRuntime::print_reg_with_pc(char *reg_name, long i, long pc) { |
|
255 tty->print_cr("%s: %lx pc: %lx", reg_name, i, pc); |
|
256 } |
219 |
257 |
220 #if INCLUDE_ALL_GCS |
258 #if INCLUDE_ALL_GCS |
221 |
259 |
222 // G1 write-barrier pre: executed before a pointer store. |
260 // G1 write-barrier pre: executed before a pointer store. |
223 JRT_LEAF(void, SharedRuntime::g1_wb_pre(oopDesc* orig, JavaThread *thread)) |
261 JRT_LEAF(void, SharedRuntime::g1_wb_pre(oopDesc* orig, JavaThread *thread)) |