comparison src/share/vm/opto/memnode.hpp @ 169:9148c65abefc

6695049: (coll) Create an x86 intrinsic for Arrays.equals Summary: Intrinsify java/util/Arrays.equals(char[], char[]) Reviewed-by: kvn, never
author rasbold
date Thu, 29 May 2008 16:22:09 -0700
parents c436414a719e
children d1605aabd0a1
comparison
equal deleted inserted replaced
168:7793bd37a336 169:9148c65abefc
719 virtual bool depends_only_on_test() const { return false; } 719 virtual bool depends_only_on_test() const { return false; }
720 virtual const Type* bottom_type() const { return TypeInt::INT; } 720 virtual const Type* bottom_type() const { return TypeInt::INT; }
721 // a StrCompNode (conservatively) aliases with everything: 721 // a StrCompNode (conservatively) aliases with everything:
722 virtual const TypePtr* adr_type() const { return TypePtr::BOTTOM; } 722 virtual const TypePtr* adr_type() const { return TypePtr::BOTTOM; }
723 virtual uint match_edge(uint idx) const; 723 virtual uint match_edge(uint idx) const;
724 virtual uint ideal_reg() const { return Op_RegI; }
725 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
726 };
727
728 //------------------------------AryEq---------------------------------------
729 class AryEqNode: public Node {
730 public:
731 AryEqNode(Node *control, Node* s1, Node* s2): Node(control, s1, s2) {};
732 virtual int Opcode() const;
733 virtual bool depends_only_on_test() const { return false; }
734 virtual const Type* bottom_type() const { return TypeInt::BOOL; }
735 virtual const TypePtr* adr_type() const { return TypeAryPtr::CHARS; }
724 virtual uint ideal_reg() const { return Op_RegI; } 736 virtual uint ideal_reg() const { return Op_RegI; }
725 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); 737 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
726 }; 738 };
727 739
728 //------------------------------MemBar----------------------------------------- 740 //------------------------------MemBar-----------------------------------------