Mercurial > hg > truffle
comparison src/share/vm/opto/mulnode.hpp @ 6275:957c266d8bc5
Merge with http://hg.openjdk.java.net/hsx/hsx24/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 21 Aug 2012 10:39:19 +0200 |
parents | 8c92982cbbc4 |
children |
comparison
equal
deleted
inserted
replaced
5891:fd8832ae511d | 6275:957c266d8bc5 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
39 // multiply-double, and binary-and are all inherited from this class. The | 39 // multiply-double, and binary-and are all inherited from this class. The |
40 // various identity values are supplied by virtual functions. | 40 // various identity values are supplied by virtual functions. |
41 class MulNode : public Node { | 41 class MulNode : public Node { |
42 virtual uint hash() const; | 42 virtual uint hash() const; |
43 public: | 43 public: |
44 MulNode( Node *in1, Node *in2 ): Node(0,in1,in2) {} | 44 MulNode( Node *in1, Node *in2 ): Node(0,in1,in2) { |
45 init_class_id(Class_Mul); | |
46 } | |
45 | 47 |
46 // Handle algebraic identities here. If we have an identity, return the Node | 48 // Handle algebraic identities here. If we have an identity, return the Node |
47 // we are equivalent to. We look for "add of zero" as an identity. | 49 // we are equivalent to. We look for "add of zero" as an identity. |
48 virtual Node *Identity( PhaseTransform *phase ); | 50 virtual Node *Identity( PhaseTransform *phase ); |
49 | 51 |