changeset 6012:492e67693373

8029888: PPC64: (part 219): adl replacement variable CondRegister Summary: Add support for replacement variable CondRegister in adlc. Reviewed-by: kvn
author goetz
date Tue, 10 Dec 2013 14:29:43 +0100
parents 3205e78d8193
children 67fa91961822
files src/share/vm/adlc/output_c.cpp src/share/vm/memory/metaspace.hpp src/share/vm/opto/machnode.hpp
diffstat 3 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/adlc/output_c.cpp	Mon Dec 02 10:26:14 2013 +0100
+++ b/src/share/vm/adlc/output_c.cpp	Tue Dec 10 14:29:43 2013 +0100
@@ -2315,6 +2315,7 @@
 #if defined(IA32) || defined(AMD64)
     if (strcmp(rep_var,"$XMMRegister") == 0)   return "as_XMMRegister";
 #endif
+    if (strcmp(rep_var,"$CondRegister") == 0)  return "as_ConditionRegister";
     return NULL;
   }
 
--- a/src/share/vm/memory/metaspace.hpp	Mon Dec 02 10:26:14 2013 +0100
+++ b/src/share/vm/memory/metaspace.hpp	Tue Dec 10 14:29:43 2013 +0100
@@ -117,12 +117,10 @@
   // Aligned size of the metaspace.
   static size_t _compressed_class_space_size;
 
- public:
   static size_t compressed_class_space_size() {
     return _compressed_class_space_size;
   }
 
- private:
   static void set_compressed_class_space_size(size_t size) {
     _compressed_class_space_size = size;
   }
--- a/src/share/vm/opto/machnode.hpp	Mon Dec 02 10:26:14 2013 +0100
+++ b/src/share/vm/opto/machnode.hpp	Tue Dec 10 14:29:43 2013 +0100
@@ -103,6 +103,15 @@
     return ::as_XMMRegister(reg(ra_, node, idx));
   }
 #endif
+  // CondRegister reg converter
+#if defined(PPC64)
+  ConditionRegister as_ConditionRegister(PhaseRegAlloc *ra_, const Node *node) const {
+    return ::as_ConditionRegister(reg(ra_, node));
+  }
+  ConditionRegister as_ConditionRegister(PhaseRegAlloc *ra_, const Node *node, int idx) const {
+    return ::as_ConditionRegister(reg(ra_, node, idx));
+  }
+#endif
 
   virtual intptr_t  constant() const;
   virtual relocInfo::relocType constant_reloc() const;