diff src/share/vm/opto/callnode.hpp @ 33:3288958bf319

6667580: Optimize CmpP for allocations Summary: CmpP could be optimized out if it compares new allocated objects. Reviewed-by: jrose, never, rasbold
author kvn
date Fri, 29 Feb 2008 09:57:18 -0800
parents a61af66fc99e
children 76256d272075
line wrap: on
line diff
--- a/src/share/vm/opto/callnode.hpp	Thu Feb 28 15:40:09 2008 -0800
+++ b/src/share/vm/opto/callnode.hpp	Fri Feb 29 09:57:18 2008 -0800
@@ -38,7 +38,7 @@
 class       CallLeafNode;
 class         CallLeafNoFPNode;
 class     AllocateNode;
-class     AllocateArrayNode;
+class       AllocateArrayNode;
 class     LockNode;
 class     UnlockNode;
 class JVMState;
@@ -91,7 +91,9 @@
 class ParmNode : public ProjNode {
   static const char * const names[TypeFunc::Parms+1];
 public:
-  ParmNode( StartNode *src, uint con ) : ProjNode(src,con) {}
+  ParmNode( StartNode *src, uint con ) : ProjNode(src,con) {
+    init_class_id(Class_Parm);
+  }
   virtual int Opcode() const;
   virtual bool  is_CFG() const { return (_con == TypeFunc::Control); }
   virtual uint ideal_reg() const;