hotspot/src/share/vm/opto/narrowptrnode.hpp
changeset 35551 36ef3841fb34
parent 30300 4b12a5b40064
equal deleted inserted replaced
35550:633a22d66bd7 35551:36ef3841fb34
    50   EncodePNode(Node* value, const Type* type):
    50   EncodePNode(Node* value, const Type* type):
    51   EncodeNarrowPtrNode(value, type) {
    51   EncodeNarrowPtrNode(value, type) {
    52     init_class_id(Class_EncodeP);
    52     init_class_id(Class_EncodeP);
    53   }
    53   }
    54   virtual int Opcode() const;
    54   virtual int Opcode() const;
    55   virtual Node *Identity( PhaseTransform *phase );
    55   virtual Node* Identity(PhaseGVN* phase);
    56   virtual const Type *Value( PhaseTransform *phase ) const;
    56   virtual const Type* Value(PhaseGVN* phase) const;
    57 };
    57 };
    58 
    58 
    59 //------------------------------EncodePKlass--------------------------------
    59 //------------------------------EncodePKlass--------------------------------
    60 // Encodes a klass pointer into its compressed form
    60 // Encodes a klass pointer into its compressed form
    61 // Takes an extra argument which is the real heap base as a long which
    61 // Takes an extra argument which is the real heap base as a long which
    65   EncodePKlassNode(Node* value, const Type* type):
    65   EncodePKlassNode(Node* value, const Type* type):
    66   EncodeNarrowPtrNode(value, type) {
    66   EncodeNarrowPtrNode(value, type) {
    67     init_class_id(Class_EncodePKlass);
    67     init_class_id(Class_EncodePKlass);
    68   }
    68   }
    69   virtual int Opcode() const;
    69   virtual int Opcode() const;
    70   virtual Node *Identity( PhaseTransform *phase );
    70   virtual Node* Identity(PhaseGVN* phase);
    71   virtual const Type *Value( PhaseTransform *phase ) const;
    71   virtual const Type* Value(PhaseGVN* phase) const;
    72 };
    72 };
    73 
    73 
    74 //------------------------------DecodeNarrowPtr--------------------------------
    74 //------------------------------DecodeNarrowPtr--------------------------------
    75 class DecodeNarrowPtrNode : public TypeNode {
    75 class DecodeNarrowPtrNode : public TypeNode {
    76   protected:
    76   protected:
    93   DecodeNNode(Node* value, const Type* type):
    93   DecodeNNode(Node* value, const Type* type):
    94   DecodeNarrowPtrNode(value, type) {
    94   DecodeNarrowPtrNode(value, type) {
    95     init_class_id(Class_DecodeN);
    95     init_class_id(Class_DecodeN);
    96   }
    96   }
    97   virtual int Opcode() const;
    97   virtual int Opcode() const;
    98   virtual const Type *Value( PhaseTransform *phase ) const;
    98   virtual const Type* Value(PhaseGVN* phase) const;
    99   virtual Node *Identity( PhaseTransform *phase );
    99   virtual Node* Identity(PhaseGVN* phase);
   100 };
   100 };
   101 
   101 
   102 //------------------------------DecodeNKlass--------------------------------
   102 //------------------------------DecodeNKlass--------------------------------
   103 // Converts a narrow klass pointer into a real klass ptr.
   103 // Converts a narrow klass pointer into a real klass ptr.
   104 // Takes an extra argument which is the real heap base as a long which
   104 // Takes an extra argument which is the real heap base as a long which
   108   DecodeNKlassNode(Node* value, const Type* type):
   108   DecodeNKlassNode(Node* value, const Type* type):
   109   DecodeNarrowPtrNode(value, type) {
   109   DecodeNarrowPtrNode(value, type) {
   110     init_class_id(Class_DecodeNKlass);
   110     init_class_id(Class_DecodeNKlass);
   111   }
   111   }
   112   virtual int Opcode() const;
   112   virtual int Opcode() const;
   113   virtual const Type *Value( PhaseTransform *phase ) const;
   113   virtual const Type* Value(PhaseGVN* phase) const;
   114   virtual Node *Identity( PhaseTransform *phase );
   114   virtual Node* Identity(PhaseGVN* phase);
   115 };
   115 };
   116 
   116 
   117 #endif // SHARE_VM_OPTO_NARROWPTRNODE_HPP
   117 #endif // SHARE_VM_OPTO_NARROWPTRNODE_HPP
   118 
   118