comparison src/share/vm/opto/output.cpp @ 235:9c2ecc2ffb12 jdk7-b31

Merge
author trims
date Fri, 11 Jul 2008 01:14:44 -0700
parents d1605aabd0a1 2a1a77d3458f
children cecd8eb4e0ca
comparison
equal deleted inserted replaced
197:de141433919f 235:9c2ecc2ffb12
445 int offset = target-(blk_starts[i] + jmp_end[i]); 445 int offset = target-(blk_starts[i] + jmp_end[i]);
446 if (_matcher->is_short_branch_offset(offset)) { 446 if (_matcher->is_short_branch_offset(offset)) {
447 // We've got a winner. Replace this branch. 447 // We've got a winner. Replace this branch.
448 MachNode *replacement = mach->short_branch_version(this); 448 MachNode *replacement = mach->short_branch_version(this);
449 b->_nodes.map(j, replacement); 449 b->_nodes.map(j, replacement);
450 mach->subsume_by(replacement);
450 451
451 // Update the jmp_end size to save time in our 452 // Update the jmp_end size to save time in our
452 // next pass. 453 // next pass.
453 jmp_end[i] -= (mach->size(_regalloc) - replacement->size(_regalloc)); 454 jmp_end[i] -= (mach->size(_regalloc) - replacement->size(_regalloc));
454 DEBUG_ONLY( jmp_target[i] = bnum; ); 455 DEBUG_ONLY( jmp_target[i] = bnum; );