comparison src/cpu/x86/vm/frame_x86.cpp @ 304:dc7f315e41f7

5108146: Merge i486 and amd64 cpu directories 6459804: Want client (c1) compiler for x86_64 (amd64) for faster start-up Reviewed-by: kvn
author never
date Wed, 27 Aug 2008 00:21:55 -0700
parents d1605aabd0a1
children eacd97c88873
comparison
equal deleted inserted replaced
303:fa4d1d240383 304:dc7f315e41f7
215 } 215 }
216 216
217 217
218 void frame::patch_pc(Thread* thread, address pc) { 218 void frame::patch_pc(Thread* thread, address pc) {
219 if (TracePcPatching) { 219 if (TracePcPatching) {
220 tty->print_cr("patch_pc at address 0x%x [0x%x -> 0x%x] ", &((address *)sp())[-1], ((address *)sp())[-1], pc); 220 tty->print_cr("patch_pc at address" INTPTR_FORMAT " [" INTPTR_FORMAT " -> " INTPTR_FORMAT "] ",
221 &((address *)sp())[-1], ((address *)sp())[-1], pc);
221 } 222 }
222 ((address *)sp())[-1] = pc; 223 ((address *)sp())[-1] = pc;
223 _cb = CodeCache::find_blob(pc); 224 _cb = CodeCache::find_blob(pc);
224 if (_cb != NULL && _cb->is_nmethod() && ((nmethod*)_cb)->is_deopt_pc(_pc)) { 225 if (_cb != NULL && _cb->is_nmethod() && ((nmethod*)_cb)->is_deopt_pc(_pc)) {
225 address orig = (((nmethod*)_cb)->get_original_pc(this)); 226 address orig = (((nmethod*)_cb)->get_original_pc(this));