comparison src/share/vm/oops/fieldInfo.hpp @ 12823:b756e7a2ec33

Added tag jdk-9+181 for changeset 4a443796f6f5
author prr
date Thu, 03 Aug 2017 18:56:57 +0000
parents de6a9e811145
children
comparison
equal deleted inserted replaced
6:6f26dd278ca8 7:e17f87cdee93
1 /* 1 /*
2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2011, 2015, 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.
174 174
175 bool is_offset_set() const { 175 bool is_offset_set() const {
176 return (_shorts[low_packed_offset] & FIELDINFO_TAG_MASK) == FIELDINFO_TAG_OFFSET; 176 return (_shorts[low_packed_offset] & FIELDINFO_TAG_MASK) == FIELDINFO_TAG_OFFSET;
177 } 177 }
178 178
179 Symbol* name(constantPoolHandle cp) const { 179 Symbol* name(const constantPoolHandle& cp) const {
180 int index = name_index(); 180 int index = name_index();
181 if (is_internal()) { 181 if (is_internal()) {
182 return lookup_symbol(index); 182 return lookup_symbol(index);
183 } 183 }
184 return cp->symbol_at(index); 184 return cp->symbol_at(index);
185 } 185 }
186 186
187 Symbol* signature(constantPoolHandle cp) const { 187 Symbol* signature(const constantPoolHandle& cp) const {
188 int index = signature_index(); 188 int index = signature_index();
189 if (is_internal()) { 189 if (is_internal()) {
190 return lookup_symbol(index); 190 return lookup_symbol(index);
191 } 191 }
192 return cp->symbol_at(index); 192 return cp->symbol_at(index);