1.1 --- a/src/share/vm/ci/ciCPCache.cpp Mon Mar 08 04:46:30 2010 -0800 1.2 +++ b/src/share/vm/ci/ciCPCache.cpp Tue Mar 09 20:16:19 2010 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. 1.6 + * Copyright 2009-2010 Sun Microsystems, Inc. All Rights Reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -41,6 +41,16 @@ 1.11 1.12 1.13 // ------------------------------------------------------------------ 1.14 +// ciCPCache::is_f1_null_at 1.15 +bool ciCPCache::is_f1_null_at(int index) { 1.16 + VM_ENTRY_MARK; 1.17 + constantPoolCacheOop cpcache = (constantPoolCacheOop) get_oop(); 1.18 + oop f1 = cpcache->secondary_entry_at(index)->f1(); 1.19 + return (f1 == NULL); 1.20 +} 1.21 + 1.22 + 1.23 +// ------------------------------------------------------------------ 1.24 // ciCPCache::print 1.25 // 1.26 // Print debugging information about the cache.