Fri, 02 Mar 2012 13:13:25 -0800
Merge
src/share/vm/c1/c1_GraphBuilder.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/c1/c1_GraphBuilder.cpp Fri Mar 02 09:13:13 2012 -0800 1.2 +++ b/src/share/vm/c1/c1_GraphBuilder.cpp Fri Mar 02 13:13:25 2012 -0800 1.3 @@ -1306,6 +1306,7 @@ 1.4 if (sw.dest_offset_at(i) < 0) has_bb = true; 1.5 } 1.6 // add default successor 1.7 + if (sw.default_offset() < 0) has_bb = true; 1.8 sux->at_put(i, block_at(bci() + sw.default_offset())); 1.9 ValueStack* state_before = has_bb ? copy_state_before() : NULL; 1.10 Instruction* res = append(new TableSwitch(ipop(), sux, sw.low_key(), state_before, has_bb)); 1.11 @@ -1350,6 +1351,7 @@ 1.12 keys->at_put(i, pair.match()); 1.13 } 1.14 // add default successor 1.15 + if (sw.default_offset() < 0) has_bb = true; 1.16 sux->at_put(i, block_at(bci() + sw.default_offset())); 1.17 ValueStack* state_before = has_bb ? copy_state_before() : NULL; 1.18 Instruction* res = append(new LookupSwitch(ipop(), sux, keys, state_before, has_bb));