hotspot/src/share/vm/code/vmreg.hpp
changeset 13294 80131b419f85
parent 8921 14bfe81f2a9d
child 13963 e5b53c306fb5
--- a/hotspot/src/share/vm/code/vmreg.hpp	Mon Jul 16 11:14:41 2012 -0700
+++ b/hotspot/src/share/vm/code/vmreg.hpp	Mon Jul 16 17:10:22 2012 -0700
@@ -131,6 +131,10 @@
     assert((is_reg() && value() < stack0->value() - 1) || is_stack(), "must be");
     return (VMReg)(intptr_t)(value() + 1);
   }
+  VMReg next(int i) {
+    assert((is_reg() && value() < stack0->value() - i) || is_stack(), "must be");
+    return (VMReg)(intptr_t)(value() + i);
+  }
   VMReg prev() {
     assert((is_stack() && value() > stack0->value()) || (is_reg() && value() != 0), "must be");
     return (VMReg)(intptr_t)(value() - 1);