src/share/vm/code/vmreg.hpp

changeset 3929
2c368ea3e844
parent 2708
1d1603768966
child 4153
b9a9ed0f8eeb
equal deleted inserted replaced
3928:56c4f88474b3 3929:2c368ea3e844
128 // we don't try and get the VMReg number of a physical register that doesn't 128 // we don't try and get the VMReg number of a physical register that doesn't
129 // have an expressible part. That would be pd specific code 129 // have an expressible part. That would be pd specific code
130 VMReg next() { 130 VMReg next() {
131 assert((is_reg() && value() < stack0->value() - 1) || is_stack(), "must be"); 131 assert((is_reg() && value() < stack0->value() - 1) || is_stack(), "must be");
132 return (VMReg)(intptr_t)(value() + 1); 132 return (VMReg)(intptr_t)(value() + 1);
133 }
134 VMReg next(int i) {
135 assert((is_reg() && value() < stack0->value() - i) || is_stack(), "must be");
136 return (VMReg)(intptr_t)(value() + i);
133 } 137 }
134 VMReg prev() { 138 VMReg prev() {
135 assert((is_stack() && value() > stack0->value()) || (is_reg() && value() != 0), "must be"); 139 assert((is_stack() && value() > stack0->value()) || (is_reg() && value() != 0), "must be");
136 return (VMReg)(intptr_t)(value() - 1); 140 return (VMReg)(intptr_t)(value() - 1);
137 } 141 }

mercurial