Mercurial > hg > graal-jvmci-8
comparison src/share/vm/ci/ciField.cpp @ 4977:532be189cf09
Reducing diff to hsx24
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 27 Feb 2012 17:06:18 +0100 |
parents | be4ca325525a |
children | 957c266d8bc5 |
comparison
equal
deleted
inserted
replaced
4976:8f01f899bccd | 4977:532be189cf09 |
---|---|
304 } | 304 } |
305 _type = type; | 305 _type = type; |
306 return type; | 306 return type; |
307 } | 307 } |
308 | 308 |
309 bool ciField::will_link(ciInstanceKlass* accessing_klass, | |
310 Bytecodes::Code bc) { | |
311 VM_ENTRY_MARK; | |
312 return will_link_from_vm(accessing_klass, bc); | |
313 } | |
314 | 309 |
315 // ------------------------------------------------------------------ | 310 // ------------------------------------------------------------------ |
316 // ciField::will_link | 311 // ciField::will_link |
317 // | 312 // |
318 // Can a specific access to this field be made without causing | 313 // Can a specific access to this field be made without causing |
319 // link errors? | 314 // link errors? |
320 bool ciField::will_link_from_vm(ciInstanceKlass* accessing_klass, | 315 bool ciField::will_link(ciInstanceKlass* accessing_klass, |
321 Bytecodes::Code bc) { | 316 Bytecodes::Code bc) { |
322 Thread* THREAD = Thread::current(); | 317 VM_ENTRY_MARK; |
323 if (_offset == -1) { | 318 if (_offset == -1) { |
324 // at creation we couldn't link to our holder so we need to | 319 // at creation we couldn't link to our holder so we need to |
325 // maintain that stance, otherwise there's no safe way to use this | 320 // maintain that stance, otherwise there's no safe way to use this |
326 // ciField. | 321 // ciField. |
327 return false; | 322 return false; |