This is a fix for 8028580: PPC64 (part 114/120): Support for Call nodes with constants. That change adds MachConstantBase node for Calls at req()-1 during expand. Reister allocation adds the derived/base pairs and then uses the wrong register maps for allocation, because the MachConstantBase node is no more at req()-1 Now add the edge in the matcher when the node is complete. Add it after parameters and before jvms. Adapt jvms offsets. Also assure jvms is always cloned, else the offset gets wrong. So far, $constanttablebase is only used in Calls on PPC, so this has no effect on other platforms. ---------------------------- This is preparation for PPC64 integration: http://openjdk.java.net/jeps/175 This and following ppc64 changes will go into staging repository first and tested there: http://hg.openjdk.java.net/ppc-aix-port/stage/