comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2825:9ba6a8abe894

Fix Invoke bci problem
author Gilles Duboscq <gilles.duboscq@oracle.com>
date Mon, 30 May 2011 18:01:32 +0200
parents ac4b086cbd72
children d54ea877a302
comparison
equal deleted inserted replaced
2824:244921d7cf50 2825:9ba6a8abe894
462 } 462 }
463 return invoke.stateAfter().duplicateModified(getBeforeInvokeBci(invoke), invoke.kind, args); 463 return invoke.stateAfter().duplicateModified(getBeforeInvokeBci(invoke), invoke.kind, args);
464 } 464 }
465 465
466 private int getBeforeInvokeBci(Invoke invoke) { 466 private int getBeforeInvokeBci(Invoke invoke) {
467 int length = 3; 467 /*int length = 3;
468 if (invoke.opcode() == Bytecodes.INVOKEINTERFACE) { 468 if (invoke.opcode() == Bytecodes.INVOKEINTERFACE) {
469 length += 2; 469 length += 2;
470 } 470 }
471 return invoke.stateAfter().bci - length; 471 return invoke.stateAfter().bci - length;*/
472 return invoke.bci;
472 } 473 }
473 474
474 @Override 475 @Override
475 public void visitInvoke(Invoke x) { 476 public void visitInvoke(Invoke x) {
476 RiMethod target = x.target(); 477 RiMethod target = x.target();