Mercurial > hg > graal-compiler
comparison src/share/vm/ci/ciCPCache.cpp @ 1602:136b78722a08
6939203: JSR 292 needs method handle constants
Summary: Add new CP types CONSTANT_MethodHandle, CONSTANT_MethodType; extend 'ldc' bytecode.
Reviewed-by: twisti, never
author | jrose |
---|---|
date | Wed, 09 Jun 2010 18:50:45 -0700 |
parents | c18cbe5936b8 |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1585:49fac4acd688 | 1602:136b78722a08 |
---|---|
42 | 42 |
43 // ------------------------------------------------------------------ | 43 // ------------------------------------------------------------------ |
44 // ciCPCache::is_f1_null_at | 44 // ciCPCache::is_f1_null_at |
45 bool ciCPCache::is_f1_null_at(int index) { | 45 bool ciCPCache::is_f1_null_at(int index) { |
46 VM_ENTRY_MARK; | 46 VM_ENTRY_MARK; |
47 constantPoolCacheOop cpcache = (constantPoolCacheOop) get_oop(); | 47 oop f1 = entry_at(index)->f1(); |
48 oop f1 = cpcache->secondary_entry_at(index)->f1(); | |
49 return (f1 == NULL); | 48 return (f1 == NULL); |
49 } | |
50 | |
51 | |
52 // ------------------------------------------------------------------ | |
53 // ciCPCache::get_pool_index | |
54 int ciCPCache::get_pool_index(int index) { | |
55 VM_ENTRY_MARK; | |
56 ConstantPoolCacheEntry* e = entry_at(index); | |
57 if (e->is_secondary_entry()) | |
58 e = entry_at(e->main_entry_index()); | |
59 return e->constant_pool_index(); | |
50 } | 60 } |
51 | 61 |
52 | 62 |
53 // ------------------------------------------------------------------ | 63 // ------------------------------------------------------------------ |
54 // ciCPCache::print | 64 // ciCPCache::print |