Mercurial > hg > truffle
comparison src/share/vm/code/nmethod.hpp @ 5056:2f2c6347fce4
comments cleanup/retagging
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 08 Mar 2012 15:01:19 +0100 |
parents | 33df1aeaebbf |
children | ab038e0d6b43 |
comparison
equal
deleted
inserted
replaced
5053:c53115427ff9 | 5056:2f2c6347fce4 |
---|---|
592 | 592 |
593 // Deopt | 593 // Deopt |
594 // Return true is the PC is one would expect if the frame is being deopted. | 594 // Return true is the PC is one would expect if the frame is being deopted. |
595 bool is_deopt_pc (address pc) { return is_deopt_entry(pc) || is_deopt_mh_entry(pc); } | 595 bool is_deopt_pc (address pc) { return is_deopt_entry(pc) || is_deopt_mh_entry(pc); } |
596 | 596 |
597 // (tw) When using graal, the address might be off by 5 (because this is the size of the call instruction. | 597 // (thomaswue) When using graal, the address might be off by 5 (because this is the size of the call instruction. |
598 // (tw) TODO: Replace this by a more general mechanism. | 598 // (thomaswue) TODO: Replace this by a more general mechanism. |
599 bool is_deopt_entry (address pc) { return pc == deopt_handler_begin() IS_GRAAL( || pc == deopt_handler_begin() + 5); } | 599 bool is_deopt_entry (address pc) { return pc == deopt_handler_begin() IS_GRAAL( || pc == deopt_handler_begin() + 5); } |
600 bool is_deopt_mh_entry(address pc) { return pc == deopt_mh_handler_begin(); } | 600 bool is_deopt_mh_entry(address pc) { return pc == deopt_mh_handler_begin(); } |
601 // Accessor/mutator for the original pc of a frame before a frame was deopted. | 601 // Accessor/mutator for the original pc of a frame before a frame was deopted. |
602 address get_original_pc(const frame* fr) { return *orig_pc_addr(fr); } | 602 address get_original_pc(const frame* fr) { return *orig_pc_addr(fr); } |
603 void set_original_pc(const frame* fr, address pc) { *orig_pc_addr(fr) = pc; } | 603 void set_original_pc(const frame* fr, address pc) { *orig_pc_addr(fr) = pc; } |