Mercurial > lasercutter
diff src/clojure/asm/Edge.java @ 10:ef7dbbd6452c
added clojure source goodness
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 21 Aug 2010 06:25:44 -0400 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/clojure/asm/Edge.java Sat Aug 21 06:25:44 2010 -0400 1.3 @@ -0,0 +1,75 @@ 1.4 +/*** 1.5 + * ASM: a very small and fast Java bytecode manipulation framework 1.6 + * Copyright (c) 2000-2005 INRIA, France Telecom 1.7 + * All rights reserved. 1.8 + * 1.9 + * Redistribution and use in source and binary forms, with or without 1.10 + * modification, are permitted provided that the following conditions 1.11 + * are met: 1.12 + * 1. Redistributions of source code must retain the above copyright 1.13 + * notice, this list of conditions and the following disclaimer. 1.14 + * 2. Redistributions in binary form must reproduce the above copyright 1.15 + * notice, this list of conditions and the following disclaimer in the 1.16 + * documentation and/or other materials provided with the distribution. 1.17 + * 3. Neither the name of the copyright holders nor the names of its 1.18 + * contributors may be used to endorse or promote products derived from 1.19 + * this software without specific prior written permission. 1.20 + * 1.21 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 1.22 + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1.23 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1.24 + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 1.25 + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1.26 + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1.27 + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1.28 + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1.29 + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1.30 + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 1.31 + * THE POSSIBILITY OF SUCH DAMAGE. 1.32 + */ 1.33 +package clojure.asm; 1.34 + 1.35 +/** 1.36 + * An edge in the control flow graph of a method body. See {@link Label Label}. 1.37 + * 1.38 + * @author Eric Bruneton 1.39 + */ 1.40 +class Edge{ 1.41 + 1.42 +/** 1.43 + * Denotes a normal control flow graph edge. 1.44 + */ 1.45 +final static int NORMAL = 0; 1.46 + 1.47 +/** 1.48 + * Denotes a control flow graph edge corresponding to an exception handler. 1.49 + * More precisely any {@link Edge} whose {@link #info} is strictly positive 1.50 + * corresponds to an exception handler. The actual value of {@link #info} is 1.51 + * the index, in the {@link ClassWriter} type table, of the exception that 1.52 + * is catched. 1.53 + */ 1.54 +final static int EXCEPTION = 0x7FFFFFFF; 1.55 + 1.56 +/** 1.57 + * Information about this control flow graph edge. If 1.58 + * {@link ClassWriter#COMPUTE_MAXS} is used this field is the (relative) 1.59 + * stack size in the basic block from which this edge originates. This size 1.60 + * is equal to the stack size at the "jump" instruction to which this edge 1.61 + * corresponds, relatively to the stack size at the beginning of the 1.62 + * originating basic block. If {@link ClassWriter#COMPUTE_FRAMES} is used, 1.63 + * this field is the kind of this control flow graph edge (i.e. NORMAL or 1.64 + * EXCEPTION). 1.65 + */ 1.66 +int info; 1.67 + 1.68 +/** 1.69 + * The successor block of the basic block from which this edge originates. 1.70 + */ 1.71 +Label successor; 1.72 + 1.73 +/** 1.74 + * The next edge in the list of successors of the originating basic block. 1.75 + * See {@link Label#successors successors}. 1.76 + */ 1.77 +Edge next; 1.78 +}