diff options
author | never <none@none> | 2008-06-24 16:00:14 -0700 |
---|---|---|
committer | never <none@none> | 2008-06-24 16:00:14 -0700 |
commit | 9991c91c989256630814af54dae59af52311c759 (patch) | |
tree | 5b5d9192ca1f04957e0ba7b60b5843f2a2ab84ef /src/share/vm/opto/matcher.hpp | |
parent | 34eee71691b49a1254bd4ed1ca26fbbf1a4ef92a (diff) | |
download | jdk8u_hotspot-9991c91c989256630814af54dae59af52311c759.tar.gz |
6718676: putback for 6604014 is incomplete
Reviewed-by: kvn, jrose
Diffstat (limited to 'src/share/vm/opto/matcher.hpp')
-rw-r--r-- | src/share/vm/opto/matcher.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/share/vm/opto/matcher.hpp b/src/share/vm/opto/matcher.hpp index 7d4c9d3bc..c9dd39ef2 100644 --- a/src/share/vm/opto/matcher.hpp +++ b/src/share/vm/opto/matcher.hpp @@ -84,6 +84,7 @@ class Matcher : public PhaseTransform { Node_Array _shared_nodes; debug_only(Node_Array _old2new_map;) // Map roots of ideal-trees to machine-roots + debug_only(Node_Array _new2old_map;) // Maps machine nodes back to ideal // Accessors for the inherited field PhaseTransform::_nodes: void grow_new_node_array(uint idx_limit) { @@ -390,5 +391,9 @@ public: #ifdef ASSERT void dump_old2new_map(); // machine-independent to machine-dependent + + Node* find_old_node(Node* new_node) { + return _new2old_map[new_node->_idx]; + } #endif }; |