src/share/vm/opto/matcher.hpp

changeset 670
9c2ecc2ffb12
parent 631
d1605aabd0a1
parent 657
2a1a77d3458f
child 803
36ccc817fca4
     1.1 --- a/src/share/vm/opto/matcher.hpp	Thu Jul 03 11:01:32 2008 -0700
     1.2 +++ b/src/share/vm/opto/matcher.hpp	Fri Jul 11 01:14:44 2008 -0700
     1.3 @@ -84,6 +84,7 @@
     1.4    Node_Array _shared_nodes;
     1.5  
     1.6    debug_only(Node_Array _old2new_map;)   // Map roots of ideal-trees to machine-roots
     1.7 +  debug_only(Node_Array _new2old_map;)   // Maps machine nodes back to ideal
     1.8  
     1.9    // Accessors for the inherited field PhaseTransform::_nodes:
    1.10    void   grow_new_node_array(uint idx_limit) {
    1.11 @@ -104,6 +105,8 @@
    1.12  #ifdef ASSERT
    1.13    // Make sure only new nodes are reachable from this node
    1.14    void verify_new_nodes_only(Node* root);
    1.15 +
    1.16 +  Node* _mem_node;   // Ideal memory node consumed by mach node
    1.17  #endif
    1.18  
    1.19  public:
    1.20 @@ -388,5 +391,9 @@
    1.21  
    1.22  #ifdef ASSERT
    1.23    void dump_old2new_map();      // machine-independent to machine-dependent
    1.24 +
    1.25 +  Node* find_old_node(Node* new_node) {
    1.26 +    return _new2old_map[new_node->_idx];
    1.27 +  }
    1.28  #endif
    1.29  };

mercurial