comparison src/share/vm/code/compiledIC.cpp @ 21559:be896a1983c0

recast all Graal native code as JVMCI code (JBS:GRAAL-53)
author Doug Simon <doug.simon@oracle.com>
date Thu, 28 May 2015 15:36:48 +0200
parents 7848fc12602b
children
comparison
equal deleted inserted replaced
21558:d563baeca9df 21559:be896a1983c0
271 CodeBlob* cb = CodeCache::find_blob_unsafe(ic_destination()); 271 CodeBlob* cb = CodeCache::find_blob_unsafe(ic_destination());
272 bool is_monomorphic = (cb != NULL && cb->is_nmethod()); 272 bool is_monomorphic = (cb != NULL && cb->is_nmethod());
273 // Check that the cached_value is a klass for non-optimized monomorphic calls 273 // Check that the cached_value is a klass for non-optimized monomorphic calls
274 // This assertion is invalid for compiler1: a call that does not look optimized (no static stub) can be used 274 // This assertion is invalid for compiler1: a call that does not look optimized (no static stub) can be used
275 // for calling directly to vep without using the inline cache (i.e., cached_value == NULL). 275 // for calling directly to vep without using the inline cache (i.e., cached_value == NULL).
276 // For Graal this occurs because CHA is only used to improve inlining so call sites which could be optimized 276 // For JVMCI this occurs because CHA is only used to improve inlining so call sites which could be optimized
277 // virtuals because there are no currently loaded subclasses of a type are left as virtual call sites. 277 // virtuals because there are no currently loaded subclasses of a type are left as virtual call sites.
278 #ifdef ASSERT 278 #ifdef ASSERT
279 CodeBlob* caller = CodeCache::find_blob_unsafe(instruction_address()); 279 CodeBlob* caller = CodeCache::find_blob_unsafe(instruction_address());
280 bool is_c1_or_graal_method = caller->is_compiled_by_c1() || caller->is_compiled_by_graal(); 280 bool is_c1_or_jvmci_method = caller->is_compiled_by_c1() || caller->is_compiled_by_jvmci();
281 assert( is_c1_or_graal_method || 281 assert( is_c1_or_jvmci_method ||
282 !is_monomorphic || 282 !is_monomorphic ||
283 is_optimized() || 283 is_optimized() ||
284 (cached_metadata() != NULL && cached_metadata()->is_klass()), "sanity check"); 284 (cached_metadata() != NULL && cached_metadata()->is_klass()), "sanity check");
285 #endif // ASSERT 285 #endif // ASSERT
286 return is_monomorphic; 286 return is_monomorphic;