1 /* 2 * Permission is hereby granted, free of charge, to any person obtaining a copy of 3 * this software and associated documentation files (the "Software"), to deal in 4 * the Software without restriction, including without limitation the rights to 5 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 6 * of the Software, and to permit persons to whom the Software is furnished to do 7 * so, subject to the following conditions: 8 * 9 * The above copyright notice and this permission notice shall be included in all 10 * copies or substantial portions of the Software. 11 * 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 18 * SOFTWARE. 19 */ 20 package jdk.nashorn.internal.joni.constants; 21 22 public interface AsmConstants { 23 final int THIS = 0; 24 25 // argument indexes 26 final int RANGE = 1; 27 final int SSTART = 2; 28 final int SPREV = 3; 29 30 // local var indexes 31 final int S = 4; // current index 32 final int BYTES = 5; // string 33 final int LAST_INDEX = BYTES + 1; 34 35 // frequently used field names (all ints) 36 final String STR = "str"; 37 final String END = "end"; 38 final String MSA_START = "msaStart"; 39 final String MSA_OPTONS = "msaOptions"; 40 final String MSA_BEST_LEN = "msaBestLen"; 41 final String MSA_BEST_S = "msaBestS"; 42 final String MSA_BEGIN = "msaBegin"; 43 final String MSA_END = "msaEnd"; 44 45 // generated field names 46 final String BITSET = "bitset"; 47 final String CODERANGE = "range"; 48 final String TEMPLATE = "template"; 49 }