Mercurial > hg > truffle
comparison src/share/vm/ci/ciField.cpp @ 1459:a8f9f091c219
Don't mess with VMToNative transitions..
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Sat, 13 Nov 2010 18:28:48 +0100 |
parents | 73b22f919c34 |
children | 944071972cd9 |
comparison
equal
deleted
inserted
replaced
1454:7cf1952ec5fb | 1459:a8f9f091c219 |
---|---|
292 } | 292 } |
293 _type = type; | 293 _type = type; |
294 return type; | 294 return type; |
295 } | 295 } |
296 | 296 |
297 bool ciField::will_link(ciInstanceKlass* accessing_klass, | |
298 Bytecodes::Code bc) { | |
299 VM_ENTRY_MARK; | |
300 will_link_from_vm(accessing_klass, bc); | |
301 } | |
297 | 302 |
298 // ------------------------------------------------------------------ | 303 // ------------------------------------------------------------------ |
299 // ciField::will_link | 304 // ciField::will_link |
300 // | 305 // |
301 // Can a specific access to this field be made without causing | 306 // Can a specific access to this field be made without causing |
302 // link errors? | 307 // link errors? |
303 bool ciField::will_link(ciInstanceKlass* accessing_klass, | 308 bool ciField::will_link_from_vm(ciInstanceKlass* accessing_klass, |
304 Bytecodes::Code bc) { | 309 Bytecodes::Code bc) { |
305 VM_ENTRY_MARK; | |
306 if (_offset == -1) { | 310 if (_offset == -1) { |
307 // at creation we couldn't link to our holder so we need to | 311 // at creation we couldn't link to our holder so we need to |
308 // maintain that stance, otherwise there's no safe way to use this | 312 // maintain that stance, otherwise there's no safe way to use this |
309 // ciField. | 313 // ciField. |
310 return false; | 314 return false; |