Mercurial > hg > truffle
comparison src/share/vm/code/nmethod.hpp @ 2891:75a99b4f1c98
Rebranded C++ part from C1X to Graal.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 08 Jun 2011 14:01:51 +0200 |
parents | 0654ee04b214 |
children | be4ca325525a |
comparison
equal
deleted
inserted
replaced
2890:c23d45daff9b | 2891:75a99b4f1c98 |
---|---|
589 | 589 |
590 // Deopt | 590 // Deopt |
591 // Return true is the PC is one would expect if the frame is being deopted. | 591 // Return true is the PC is one would expect if the frame is being deopted. |
592 bool is_deopt_pc (address pc) { return is_deopt_entry(pc) || is_deopt_mh_entry(pc); } | 592 bool is_deopt_pc (address pc) { return is_deopt_entry(pc) || is_deopt_mh_entry(pc); } |
593 | 593 |
594 // (tw) When using C1X, the address might be off by 5 (because this is the size of the call instruction. | 594 // (tw) When using graal, the address might be off by 5 (because this is the size of the call instruction. |
595 // (tw) TODO: Replace this by a more general mechanism. | 595 // (tw) TODO: Replace this by a more general mechanism. |
596 bool is_deopt_entry (address pc) { return pc == deopt_handler_begin() || (UseC1X && pc == deopt_handler_begin() + 5); } | 596 bool is_deopt_entry (address pc) { return pc == deopt_handler_begin() || (UseGraal && pc == deopt_handler_begin() + 5); } |
597 bool is_deopt_mh_entry(address pc) { return pc == deopt_mh_handler_begin(); } | 597 bool is_deopt_mh_entry(address pc) { return pc == deopt_mh_handler_begin(); } |
598 // Accessor/mutator for the original pc of a frame before a frame was deopted. | 598 // Accessor/mutator for the original pc of a frame before a frame was deopted. |
599 address get_original_pc(const frame* fr) { return *orig_pc_addr(fr); } | 599 address get_original_pc(const frame* fr) { return *orig_pc_addr(fr); } |
600 void set_original_pc(const frame* fr, address pc) { *orig_pc_addr(fr) = pc; } | 600 void set_original_pc(const frame* fr, address pc) { *orig_pc_addr(fr) = pc; } |
601 | 601 |