/** * Replaces all the instructions in this code block that match the * given template with the given instruction. After this method, * the iterator will be {@link #afterLast}. * * @return the number of substitutions made */ public int replace(Instruction template, Instruction with) { beforeFirst(); int count; for (count = 0; searchForward(template); count++) set(with); return count; }
/** * Replaces all the instructions in this code block that match the * given template with the given instruction. After this method, * the iterator will be {@link #afterLast}. * * @return the number of substitutions made */ public int replace(Instruction template, Instruction with) { beforeFirst(); int count; for (count = 0; searchForward(template); count++) set(with); return count; }
while (code.searchForward(template)) { int backupCount = 3; templateIns = code.previous();
while (code.searchForward(template)) { int backupCount = 3; templateIns = code.previous();
Code template = AccessController.doPrivileged( J2DoPrivHelper.newCodeAction()); code.searchForward(template.vreturn()); code.previous(); code.set(template.nop());
Code template = (Code) AccessController.doPrivileged( J2DoPrivHelper.newCodeAction()); code.searchForward(template.vreturn()); code.previous(); code.set(template.nop());
Code template = AccessController.doPrivileged( J2DoPrivHelper.newCodeAction()); code.searchForward(template.vreturn()); code.previous(); code.set(template.nop());
Code template = AccessController.doPrivileged( J2DoPrivHelper.newCodeAction()); code.searchForward(template.vreturn()); code.previous(); code.set(template.nop());
while (code.searchForward(template)) { int backupCount = 3; templateIns = code.previous();
Code template = AccessController.doPrivileged( J2DoPrivHelper.newCodeAction()); code.searchForward(template.vreturn()); code.previous(); code.set(template.nop());
if (code.searchForward(template)) {
if (code.searchForward(template)) {
if (code.searchForward(template)) {
ClassMetaData owner; String name, typeName, methodName; while (code.searchForward(ins)) {
ClassMetaData owner; String name, typeName, methodName; while (code.searchForward(ins)) {
Instruction ret; code.beforeFirst(); while (code.searchForward(tmplate)) { ret = code.previous();
Instruction ret; code.beforeFirst(); while (code.searchForward(tmplate)) { ret = code.previous();
Instruction ret; code.beforeFirst(); while (code.searchForward(tmplate)) { ret = code.previous();
Instruction ret; code.beforeFirst(); while (code.searchForward(tmplate)) { ret = code.previous();
Instruction ret; code.beforeFirst(); while (code.searchForward(tmplate)) { ret = code.previous();