Back to index

wims  3.65+svn20090927
VM.java
Go to the documentation of this file.
00001 // This file is automatically generated by the build.py script. Do not edit!
00002 
00003 /*
00004  * Copyright (C) 2008 Mihai Preda.
00005  *
00006  * Licensed under the Apache License, Version 2.0 (the "License");
00007  * you may not use this file except in compliance with the License.
00008  * You may obtain a copy of the License at
00009  *
00010  *      http://www.apache.org/licenses/LICENSE-2.0
00011  *
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  */
00018 
00019 package org.javia.arity;
00020 
00021 class VM {
00022 
00023 public static final byte
00024 RESERVED = 0,
00025 CONST = 1,
00026 CALL = 2,
00027 ADD = 3,
00028 SUB = 4,
00029 MUL = 5,
00030 DIV = 6,
00031 MOD = 7,
00032 RND = 8,
00033 UMIN = 9,
00034 POWER = 10,
00035 FACT = 11,
00036 SQRT = 12,
00037 CBRT = 13,
00038 EXP = 14,
00039 LOG = 15,
00040 SIN = 16,
00041 COS = 17,
00042 TAN = 18,
00043 ASIN = 19,
00044 ACOS = 20,
00045 ATAN = 21,
00046 SINH = 22,
00047 COSH = 23,
00048 TANH = 24,
00049 ASINH = 25,
00050 ACOSH = 26,
00051 ATANH = 27,
00052 ABS = 28,
00053 FLOOR = 29,
00054 CEIL = 30,
00055 SIGN = 31,
00056 MIN = 32,
00057 MAX = 33,
00058 GCD = 34,
00059 COMB = 35,
00060 PERM = 36,
00061 LOAD0 = 37,
00062 LOAD1 = 38,
00063 LOAD2 = 39,
00064 LOAD3 = 40,
00065 LOAD4 = 41,
00066 BYTECODE_END = 42;
00067 
00068 public static final String[] opcodeName = {
00069 "reserved",
00070 "const",
00071 "call",
00072 "add",
00073 "sub",
00074 "mul",
00075 "div",
00076 "mod",
00077 "rnd",
00078 "umin",
00079 "power",
00080 "fact",
00081 "sqrt",
00082 "cbrt",
00083 "exp",
00084 "log",
00085 "sin",
00086 "cos",
00087 "tan",
00088 "asin",
00089 "acos",
00090 "atan",
00091 "sinh",
00092 "cosh",
00093 "tanh",
00094 "asinh",
00095 "acosh",
00096 "atanh",
00097 "abs",
00098 "floor",
00099 "ceil",
00100 "sign",
00101 "min",
00102 "max",
00103 "gcd",
00104 "comb",
00105 "perm",
00106 "load0",
00107 "load1",
00108 "load2",
00109 "load3",
00110 "load4",
00111 "bytecode_end"
00112 };
00113 
00114 public static final byte[] builtinArity = 
00115 {-1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, -1, -1, -1, -1, -1, -1};
00116 
00117 }