comparison graal/GraalCompiler/src/com/sun/c1x/value/FrameState.java @ 2636:8c02ca1e9eb1

Fixed bci for stateBefore in BlockBegin
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 11 May 2011 11:43:44 +0200
parents c93adece95d2
children 6ca76b891d31
comparison
equal deleted inserted replaced
2635:0f69be73d5ce 2636:8c02ca1e9eb1
94 } 94 }
95 95
96 /** 96 /**
97 * Gets a copy of this frame state. 97 * Gets a copy of this frame state.
98 */ 98 */
99 public FrameState duplicate() { 99 public FrameState duplicate(int bci) {
100 FrameState other = copy(); 100 FrameState other = copy(bci);
101 other.inputs().setAll(inputs()); 101 other.inputs().setAll(inputs());
102 return other; 102 return other;
103 } 103 }
104 104
105 /** 105 /**
447 @Override 447 @Override
448 public FrameState copy() { 448 public FrameState copy() {
449 return new FrameState(bci, localsSize, stackSize, locksSize, graph()); 449 return new FrameState(bci, localsSize, stackSize, locksSize, graph());
450 } 450 }
451 451
452
453 private FrameState copy(int newBci) {
454 return new FrameState(newBci, localsSize, stackSize, locksSize, graph());
455 }
456
452 @Override 457 @Override
453 public String shortName() { 458 public String shortName() {
454 return "FrameState@" + bci; 459 return "FrameState@" + bci;
455 } 460 }
456 461