--- old/src/share/vm/opto/subnode.hpp 2016-02-12 16:44:37.521875164 +0100 +++ new/src/share/vm/opto/subnode.hpp 2016-02-12 16:44:36.475369147 +0100 @@ -39,7 +39,7 @@ // are compressed into -1, and all positive answers compressed to 1. class SubNode : public Node { public: - SubNode( Node *in1, Node *in2 ) : Node(0,in1,in2) { + SubNode(Node *in1, Node *in2) : Node(0,in1,in2) { init_class_id(Class_Sub); } @@ -50,16 +50,18 @@ // Compute a new Type for this node. Basically we just do the pre-check, // then call the virtual add() to set the type. virtual const Type* Value(PhaseGVN* phase) const; - const Type* Value_common( PhaseTransform *phase ) const; + const Type* Value_common(PhaseTransform *phase) const; // Supplied function returns the subtractend of the inputs. // This also type-checks the inputs for sanity. Guaranteed never to // be passed a TOP or BOTTOM type, these are filtered out by a pre-check. - virtual const Type *sub( const Type *, const Type * ) const = 0; + virtual const Type *sub(const Type*, const Type*) const = 0; // Supplied function to return the additive identity type. // This is returned whenever the subtracts inputs are the same. virtual const Type *add_id() const = 0; + + static SubNode* make(BasicType bt, Node *in1, Node *in2); };