comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2658:63633fb05914

Removed base from ValueVisitor.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 11 May 2011 16:12:01 +0200
parents 9e30cf6dcf96
children 9f557e940180
comparison
equal deleted inserted replaced
2657:4a6518c4d17d 2658:63633fb05914
273 public CiValue emitArrayLength(ArrayLength x) { 273 public CiValue emitArrayLength(ArrayLength x) {
274 XirArgument array = toXirArgument(x.array()); 274 XirArgument array = toXirArgument(x.array());
275 XirSnippet snippet = xir.genArrayLength(site(x), array); 275 XirSnippet snippet = xir.genArrayLength(site(x), array);
276 emitXir(snippet, x, stateFor(x), null, true); 276 emitXir(snippet, x, stateFor(x), null, true);
277 return x.operand(); 277 return x.operand();
278 }
279
280 @Override
281 public void visitBase(Base x) {
282 // emit phi-instruction move after safepoint since this simplifies
283 // describing the state at the safepoint.
284 //moveToPhi();
285
286 // all blocks with a successor must end with an unconditional jump
287 // to the successor even if they are consecutive
288 lir.jump(x.defaultSuccessor());
289 } 278 }
290 279
291 private void setOperandsForLocals(FrameState state) { 280 private void setOperandsForLocals(FrameState state) {
292 CiCallingConvention args = compilation.frameMap().incomingArguments(); 281 CiCallingConvention args = compilation.frameMap().incomingArguments();
293 int javaIndex = 0; 282 int javaIndex = 0;