comparison src/share/vm/code/nmethod.hpp @ 4559:723df37192d6

Make it possible again to build a real client libjvm, drop the UseGraal flag. Use the --vm option instead of a special -vm option in the bench command
author Gilles Duboscq <duboscq@ssw.jku.at>
date Fri, 10 Feb 2012 17:04:03 +0100
parents 04b9a2566eec
children ef00461e29af
comparison
equal deleted inserted replaced
4558:3706975946e4 4559:723df37192d6
590 // Return true is the PC is one would expect if the frame is being deopted. 590 // Return true is the PC is one would expect if the frame is being deopted.
591 bool is_deopt_pc (address pc) { return is_deopt_entry(pc) || is_deopt_mh_entry(pc); } 591 bool is_deopt_pc (address pc) { return is_deopt_entry(pc) || is_deopt_mh_entry(pc); }
592 592
593 // (tw) When using graal, the address might be off by 5 (because this is the size of the call instruction. 593 // (tw) When using graal, the address might be off by 5 (because this is the size of the call instruction.
594 // (tw) TODO: Replace this by a more general mechanism. 594 // (tw) TODO: Replace this by a more general mechanism.
595 bool is_deopt_entry (address pc) { return pc == deopt_handler_begin() || (UseGraal && pc == deopt_handler_begin() + 5); } 595 bool is_deopt_entry (address pc) { return pc == deopt_handler_begin() IS_GRAAL( || pc == deopt_handler_begin() + 5); }
596 bool is_deopt_mh_entry(address pc) { return pc == deopt_mh_handler_begin(); } 596 bool is_deopt_mh_entry(address pc) { return pc == deopt_mh_handler_begin(); }
597 // Accessor/mutator for the original pc of a frame before a frame was deopted. 597 // Accessor/mutator for the original pc of a frame before a frame was deopted.
598 address get_original_pc(const frame* fr) { return *orig_pc_addr(fr); } 598 address get_original_pc(const frame* fr) { return *orig_pc_addr(fr); }
599 void set_original_pc(const frame* fr, address pc) { *orig_pc_addr(fr) = pc; } 599 void set_original_pc(const frame* fr, address pc) { *orig_pc_addr(fr) = pc; }
600 600