2498N/A * Copyright (c) 2001, 2010, 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 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 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. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A Java Class Version numbers history 0N/A 1.6 to 1.5.x 50,0 NOTE Assumed for now 0N/A // pseudo-constants: 0N/A // pseudo-access bits 0N/A // attribute "context types" 0N/A = {
"class",
"field",
"method",
"code" };
0N/A // predefined attr bits 0N/A public static final int 0N/A // File option bits, from LSB in ascending bit position. 0N/A // Archive option bits, from LSB in ascending bit position: 0N/A // some comstantly empty containers 0N/A public final static int 0N/A public final static int 0N/A // End marker, used to terminate bytecode sequences: 0N/A // Self-relative pseudo-opcodes for better compression. 0N/A // A "linker op" is a bytecode which links to a class member. 0N/A // (But in what follows, "invokeinterface" ops are excluded.) 0N/A // A "self linker op" is a variant bytecode which works only 0N/A // with the current class or its super. Because the number of 0N/A // possible targets is small, it admits a more compact encoding. 0N/A // Self linker ops are allowed to absorb a previous "aload_0" op. 0N/A // There are (7 * 4) self linker ops (super or not, aload_0 or not). 0N/A // For simplicity, we define the full symmetric set of variants. 0N/A // However, some of them are relatively useless. 0N/A // Self linker ops are enabled by Pack.selfCallVariants (true). 0N/A // An "invoke init" op is a variant of invokespecial which works 0N/A // only with the method name "<init>". There are variants which 0N/A // link to the current class, the super class, or the class of the 0N/A // immediately previous "newinstance" op. There are 3 of these ops. 0N/A // They all take method signature references as operands. 0N/A // Invoke init ops are enabled by Pack.initCallVariants (true). 0N/A // linker variant limit == 202+(7*4)+3 == 233 0N/A // Ldc variants support strongly typed references to constants. 0N/A // This lets us index constant pool entries completely according to tag, 0N/A // which is a great simplification. 0N/A // Ldc variants gain us only 0.007% improvement in compression ratio, 0N/A // but they simplify the file format greatly.