7079317: Incorrect branch's destination block in PrintoOptoAssembly output

Save/restore label and block in scratch_emit_size()

Reviewed-by: never
This commit is contained in:
Vladimir Kozlov 2011-08-16 11:53:57 -07:00
parent 134c40b4db
commit 080f790edc
11 changed files with 84 additions and 85 deletions

View file

@ -389,12 +389,6 @@ int MachNode::operand_index( uint operand ) const {
}
//------------------------------negate-----------------------------------------
// Negate conditional branches. Error for non-branch Nodes
void MachNode::negate() {
ShouldNotCallThis();
}
//------------------------------peephole---------------------------------------
// Apply peephole rule(s) to this instruction
MachNode *MachNode::peephole( Block *block, int block_index, PhaseRegAlloc *ra_, int &deleted, Compile* C ) {
@ -407,12 +401,6 @@ void MachNode::add_case_label( int index_num, Label* blockLabel) {
ShouldNotCallThis();
}
//------------------------------label_set--------------------------------------
// Set the Label for a LabelOper, if an operand for this instruction
void MachNode::label_set( Label* label, uint block_num ) {
ShouldNotCallThis();
}
//------------------------------method_set-------------------------------------
// Set the absolute address of a method
void MachNode::method_set( intptr_t addr ) {
@ -517,6 +505,9 @@ void MachNullCheckNode::emit(CodeBuffer &cbuf, PhaseRegAlloc *ra_) const {
void MachNullCheckNode::label_set(Label* label, uint block_num) {
// Nothing to emit
}
void MachNullCheckNode::save_label( Label** label, uint* block_num ) {
// Nothing to emit
}
const RegMask &MachNullCheckNode::in_RegMask( uint idx ) const {
if( idx == 0 ) return RegMask::Empty;