Mercurial > hg > truffle
comparison src/share/vm/ci/ciCPCache.cpp @ 2491:0654ee04b214
Merge with OpenJDK.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 22 Apr 2011 15:30:53 +0200 |
parents | c7f3d0b4570f |
children |
comparison
equal
deleted
inserted
replaced
2490:29246b1d2d3c | 2491:0654ee04b214 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
44 | 44 |
45 // ------------------------------------------------------------------ | 45 // ------------------------------------------------------------------ |
46 // ciCPCache::is_f1_null_at | 46 // ciCPCache::is_f1_null_at |
47 bool ciCPCache::is_f1_null_at(int index) { | 47 bool ciCPCache::is_f1_null_at(int index) { |
48 VM_ENTRY_MARK; | 48 VM_ENTRY_MARK; |
49 oop f1 = entry_at(index)->f1(); | 49 return entry_at(index)->is_f1_null(); |
50 return (f1 == NULL); | |
51 } | 50 } |
52 | 51 |
53 | 52 |
54 // ------------------------------------------------------------------ | 53 // ------------------------------------------------------------------ |
55 // ciCPCache::get_pool_index | 54 // ciCPCache::get_pool_index |