--- a/hotspot/src/share/vm/opto/machnode.hpp Tue Nov 17 23:35:55 2015 +0100
+++ b/hotspot/src/share/vm/opto/machnode.hpp Mon Nov 02 15:52:37 2015 +0100
@@ -578,8 +578,8 @@
#ifndef PRODUCT
- virtual const char *Name() const {
- switch (_spill_type) {
+ static const char *spill_type(SpillType st) {
+ switch (st) {
case TwoAddress:
return "TwoAddressSpillCopy";
case PhiInput:
@@ -612,6 +612,10 @@
}
}
+ virtual const char *Name() const {
+ return spill_type(_spill_type);
+ }
+
virtual void format( PhaseRegAlloc *, outputStream *st ) const;
#endif
};