Mercurial > hg > truffle
diff src/share/vm/opto/machnode.cpp @ 3853:11211f7cb5a0
7079317: Incorrect branch's destination block in PrintoOptoAssembly output
Summary: save/restore label and block in scratch_emit_size()
Reviewed-by: never
author | kvn |
---|---|
date | Tue, 16 Aug 2011 11:53:57 -0700 |
parents | 3d42f82cd811 |
children | e3b0dcc327b9 |
line wrap: on
line diff
--- a/src/share/vm/opto/machnode.cpp Tue Aug 16 04:14:05 2011 -0700 +++ b/src/share/vm/opto/machnode.cpp Tue Aug 16 11:53:57 2011 -0700 @@ -389,12 +389,6 @@ } -//------------------------------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 @@ 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::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;