equal
deleted
inserted
replaced
671 } |
671 } |
672 } |
672 } |
673 } else if (l->as_InstanceOf() != NULL) { |
673 } else if (l->as_InstanceOf() != NULL) { |
674 // NOTE: Code permanently disabled for now since it leaves the old InstanceOf |
674 // NOTE: Code permanently disabled for now since it leaves the old InstanceOf |
675 // instruction in the graph (it is pinned). Need to fix this at some point. |
675 // instruction in the graph (it is pinned). Need to fix this at some point. |
|
676 // It should also be left in the graph when generating a profiled method version or Goto |
|
677 // has to know that it was an InstanceOf. |
676 return; |
678 return; |
677 // pattern: If ((obj instanceof klass) cond rc) => simplify to: IfInstanceOf or: Goto |
679 // pattern: If ((obj instanceof klass) cond rc) => simplify to: IfInstanceOf or: Goto |
678 InstanceOf* inst = l->as_InstanceOf(); |
680 InstanceOf* inst = l->as_InstanceOf(); |
679 BlockBegin* is_inst_sux = x->sux_for(is_true(1, x->cond(), rc)); // successor for instanceof == 1 |
681 BlockBegin* is_inst_sux = x->sux_for(is_true(1, x->cond(), rc)); // successor for instanceof == 1 |
680 BlockBegin* no_inst_sux = x->sux_for(is_true(0, x->cond(), rc)); // successor for instanceof == 0 |
682 BlockBegin* no_inst_sux = x->sux_for(is_true(0, x->cond(), rc)); // successor for instanceof == 0 |