1.1 --- a/src/share/vm/opto/subnode.hpp Tue Apr 20 13:26:33 2010 -0700 1.2 +++ b/src/share/vm/opto/subnode.hpp Mon Apr 26 11:27:21 2010 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved. 1.6 + * Copyright 1997-2010 Sun Microsystems, Inc. All Rights Reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -509,3 +509,23 @@ 1.11 const Type *bottom_type() const { return TypeLong::LONG; } 1.12 virtual uint ideal_reg() const { return Op_RegL; } 1.13 }; 1.14 + 1.15 +//-------------------------------ReverseBytesUSNode-------------------------------- 1.16 +// reverse bytes of an unsigned short / char 1.17 +class ReverseBytesUSNode : public Node { 1.18 +public: 1.19 + ReverseBytesUSNode(Node *c, Node *in1) : Node(c, in1) {} 1.20 + virtual int Opcode() const; 1.21 + const Type *bottom_type() const { return TypeInt::CHAR; } 1.22 + virtual uint ideal_reg() const { return Op_RegI; } 1.23 +}; 1.24 + 1.25 +//-------------------------------ReverseBytesSNode-------------------------------- 1.26 +// reverse bytes of a short 1.27 +class ReverseBytesSNode : public Node { 1.28 +public: 1.29 + ReverseBytesSNode(Node *c, Node *in1) : Node(c, in1) {} 1.30 + virtual int Opcode() const; 1.31 + const Type *bottom_type() const { return TypeInt::SHORT; } 1.32 + virtual uint ideal_reg() const { return Op_RegI; } 1.33 +};