hotspot/src/share/vm/opto/compile.hpp
changeset 31858 13420c0a3ad5
parent 30593 69f942690128
child 32393 4406de22d8ce
--- a/hotspot/src/share/vm/opto/compile.hpp	Fri Jul 10 11:59:09 2015 -0700
+++ b/hotspot/src/share/vm/opto/compile.hpp	Tue Jul 14 09:55:22 2015 -0700
@@ -140,6 +140,9 @@
   bool is_debug()                 const          { return _debug; }
   void set_debug(bool debug)                     { _debug = debug; }
   static const char* debug_option_name;
+
+  bool same_idx(node_idx_t k1, node_idx_t k2)  const { return idx(k1) == idx(k2); }
+  bool same_gen(node_idx_t k1, node_idx_t k2)  const { return gen(k1) == gen(k2); }
 };
 
 //------------------------------Compile----------------------------------------