3418N/A * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A// This class represents the result of a field lookup in the VM. 0N/A// The lookup may not succeed, in which case the information in 0N/A// the ciField will be incomplete. 0N/A // Used for will_link 0N/A // shared constructor code 0N/A // Of which klass is this field a member? 0N/A // Usage note: the declared holder of a field is the class 0N/A // referenced by name in the bytecodes. The canonical holder 0N/A // is the most general class which holds the field. This 0N/A // method returns the canonical holder. The declared holder 0N/A // can be accessed via a method in ciBytecodeStream. 0N/A // public int f = 7; 0N/A // class B extends A { 0N/A // public void test() { 0N/A // System.out.println(f); 0N/A // A java compiler is permitted to compile the access to 0N/A // In that case the declared holder of f would be B and 0N/A // the canonical holder of f would be A. 0N/A // Name of this field? 0N/A // Signature of this field? 0N/A // Of what type is this field? 0N/A // How is this field actually stored in memory? 0N/A // How big is this field in memory? 0N/A // What is the offset of this field? 0N/A // Same question, explicit units. (Fields are aligned to the byte level.) 0N/A // Is this field shared? 0N/A // non-static fields of shared holders are cached 0N/A // Is this field a constant? 0N/A // Clarification: A field is considered constant if: 0N/A // 1. The field is both static and final 0N/A // 2. The canonical holder of the field has undergone 0N/A // static initialization. 0N/A // 3. If the field is an object or array, then the oop 0N/A // in question is allocated in perm space. 0N/A // non-constant fields. These are java.lang.System.in 0N/A // and java.lang.System.out. Abomination. 0N/A // Note: the check for case 4 is not yet implemented. 0N/A // Get the constant value of this field. 1138N/A // Get the constant value of non-static final field in the given 0N/A // Check for link time errors. Accessing a field from a 0N/A // certain class via a certain bytecode may or may not be legal. 0N/A // This call checks to see if an exception may be raised by 0N/A // an access of this field. 0N/A // Usage note: if the same field is accessed multiple times 0N/A // in the same compilation, will_link will need to be checked 0N/A // at each point of access. 0N/A // Java access flags 1879N/A#
endif // SHARE_VM_CI_CIFIELD_HPP