Mercurial > hg > graal-jvmci-8
comparison src/share/vm/jvmci/jvmciCodeInstaller.cpp @ 23396:9ed5b586018b
Replace LIRKind with abstract base class (JDK-8156942).
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Fri, 13 May 2016 14:33:19 +0200 |
parents | 19855d029fc0 |
children | f84a5ac3be22 09a536b9233c |
comparison
equal
deleted
inserted
replaced
23395:19432ed40848 | 23396:9ed5b586018b |
---|---|
199 return Klass::encode_klass(klass); | 199 return Klass::encode_klass(klass); |
200 } | 200 } |
201 #endif | 201 #endif |
202 | 202 |
203 Location::Type CodeInstaller::get_oop_type(Handle value) { | 203 Location::Type CodeInstaller::get_oop_type(Handle value) { |
204 Handle lirKind = Value::lirKind(value); | 204 Handle valueKind = Value::valueKind(value); |
205 Handle platformKind = LIRKind::platformKind(lirKind); | 205 Handle platformKind = ValueKind::platformKind(valueKind); |
206 assert(LIRKind::referenceMask(lirKind) == 1, "unexpected referenceMask"); | |
207 | 206 |
208 if (platformKind == word_kind()) { | 207 if (platformKind == word_kind()) { |
209 return Location::oop; | 208 return Location::oop; |
210 } else { | 209 } else { |
211 return Location::narrowoop; | 210 return Location::narrowoop; |