switching on keys of type long

Venkatachalam, Vasanth Vasanth.Venkatachalam at amd.com
Wed Nov 6 10:43:22 PST 2013


Can someone explain why the emitCode( ) routine of AMD64ControlFlow.SequentialSwitchOp is handling the case:

else if (key.getKind() = Kind.Long)  ?

>From my understanding of Java, it's not possible to switch on keys of type long. You get a compile time error.

Vasanth


More information about the graal-dev mailing list