Mercurial > hg > graal-compiler
comparison src/share/vm/code/compiledIC.cpp @ 7125:1baf7f1e3f23
decoupled C++ Graal runtime from C1
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 03 Dec 2012 15:32:17 +0100 |
parents | 1d419abb0081 |
children | c66aa27ef4da |
comparison
equal
deleted
inserted
replaced
7124:ab65fa23f8e9 | 7125:1baf7f1e3f23 |
---|---|
237 // Check that the cached_value is a klass for non-optimized monomorphic calls | 237 // Check that the cached_value is a klass for non-optimized monomorphic calls |
238 // This assertion is invalid for compiler1: a call that does not look optimized (no static stub) can be used | 238 // This assertion is invalid for compiler1: a call that does not look optimized (no static stub) can be used |
239 // for calling directly to vep without using the inline cache (i.e., cached_value == NULL) | 239 // for calling directly to vep without using the inline cache (i.e., cached_value == NULL) |
240 #ifdef ASSERT | 240 #ifdef ASSERT |
241 CodeBlob* caller = CodeCache::find_blob_unsafe(instruction_address()); | 241 CodeBlob* caller = CodeCache::find_blob_unsafe(instruction_address()); |
242 bool is_c1_method = caller->is_compiled_by_c1(); | 242 bool is_c1_or_graal_method = caller->is_compiled_by_c1() || caller->is_compiled_by_graal(); |
243 assert( is_c1_method || | 243 assert( is_c1_or_graal_method || |
244 !is_monomorphic || | 244 !is_monomorphic || |
245 is_optimized() || | 245 is_optimized() || |
246 (cached_metadata() != NULL && cached_metadata()->is_klass()), "sanity check"); | 246 (cached_metadata() != NULL && cached_metadata()->is_klass()), "sanity check"); |
247 #endif // ASSERT | 247 #endif // ASSERT |
248 return is_monomorphic; | 248 return is_monomorphic; |