8029888: PPC64: (part 219): adl replacement variable CondRegister
Summary: Add support for replacement variable CondRegister in adlc.
Reviewed-by: kvn
--- a/hotspot/src/share/vm/adlc/output_c.cpp Mon Dec 02 10:26:14 2013 +0100
+++ b/hotspot/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/hotspot/src/share/vm/memory/metaspace.hpp Mon Dec 02 10:26:14 2013 +0100
+++ b/hotspot/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/hotspot/src/share/vm/opto/machnode.hpp Mon Dec 02 10:26:14 2013 +0100
+++ b/hotspot/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;