diff src/share/vm/adlc/output_h.cpp @ 4120:f03a3c8bd5e5

7077312: Provide a CALL effect for instruct declaration in the ad file Summary: abstracted way to declare that the MachNode has the effect of a call (kills caller save registers, preserves callee save registers) Reviewed-by: twisti, never
author roland
date Wed, 14 Sep 2011 09:22:51 +0200
parents 11211f7cb5a0
children 1d7922586cf6
line wrap: on
line diff
--- a/src/share/vm/adlc/output_h.cpp	Mon Nov 21 00:57:43 2011 -0800
+++ b/src/share/vm/adlc/output_h.cpp	Wed Sep 14 09:22:51 2011 +0200
@@ -1720,6 +1720,16 @@
       }
     }
 
+    // flag: if this instruction is implemented with a call
+    if ( instr->_has_call ) {
+      if ( node_flags_set ) {
+        fprintf(fp," | Flag_has_call");
+      } else {
+        fprintf(fp,"init_flags(Flag_has_call");
+        node_flags_set = true;
+      }
+    }
+
     if ( node_flags_set ) {
       fprintf(fp,"); ");
     }