2362N/A * Copyright (c) 2001, 2004, 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 /** Length in bytes */ 0N/A // Support for labels; package-private 0N/A /** Keeps track of the current (one-based) constant pool index; 0N/A incremented after emitting one of the following constant pool 0N/A entries. Can fetch the current constant pool index for use in 0N/A later entries. Index points at the last valid constant pool 0N/A entry; initially invalid. It is illegal to fetch the constant 0N/A pool index before emitting at least one constant pool entry. */ 0N/A // NOTE: can not use str.getBytes("UTF-8") here because of 0N/A // bootstrapping issues with the character set converters. 0N/A //---------------------------------------------------------------------- 0N/A // Opcodes. Keeps track of maximum stack and locals. Make a new 0N/A // assembler for each piece of assembled code, then append the 0N/A // result to the previous assembler's class file. 0N/A /** It's necessary to be able to specify the number of arguments at 0N/A the beginning of the method (which translates to the initial 0N/A value of max locals) */ 0N/A /** Needed to do flow control. Returns current stack depth. */ 0N/A /** Needed to do flow control. */ 0N/A ///////////////////////////////////// 0N/A // Local variable loads and stores // 0N/A ///////////////////////////////////// 0N/A //////////////////////// 0N/A // Stack manipulation // 0N/A //////////////////////// 0N/A /////////////////////////////// 0N/A // Widening conversions only // 0N/A /////////////////////////////// 0N/A /** Control flow with forward-reference BCI. Stack assumes 0N/A straight-through control flow. */ 0N/A /** Control flow with forward-reference BCI. Stack assumes straight 0N/A /** Control flow with forward-reference BCI. Stack assumes straight 0N/A /** Control flow with forward-reference BCI. Stack assumes straight 0N/A /** Control flow with forward-reference BCI. Stack assumes straight 0N/A ///////////////////////// 0N/A // Return instructions // 0N/A ///////////////////////// 0N/A ////////////////////// 0N/A // Field operations // 0N/A ////////////////////// 0N/A //////////////////////// 0N/A // Method invocations // 0N/A //////////////////////// 0N/A /** Long and double arguments and return types count as 2 arguments; 0N/A other values count as 1. */ 0N/A /** Long and double arguments and return types count as 2 arguments; 0N/A other values count as 1. */ 0N/A /** Long and double arguments and return types count as 2 arguments; 0N/A other values count as 1. */ 0N/A /** Long and double arguments and return types count as 2 arguments; 0N/A other values count as 1. */ 0N/A ////////////////////////////// 0N/A // Checkcast and instanceof // 0N/A ////////////////////////////// 0N/A /** Assumes the checkcast succeeds */