Mercurial > hg > graal-jvmci-8
comparison src/share/vm/code/vmreg.hpp @ 6275:957c266d8bc5
Merge with http://hg.openjdk.java.net/hsx/hsx24/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 21 Aug 2012 10:39:19 +0200 |
parents | 2c368ea3e844 |
children | b9a9ed0f8eeb |
comparison
equal
deleted
inserted
replaced
5891:fd8832ae511d | 6275:957c266d8bc5 |
---|---|
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 } |