corda/src/constants.h

233 lines
2.7 KiB
C
Raw Normal View History

2007-06-06 00:41:04 +00:00
#ifndef CONSTANTS_H
#define CONSTANTS_H
2007-06-05 00:28:52 +00:00
namespace vm {
2007-06-05 00:28:52 +00:00
enum OpCode {
aaload,
aastore,
2007-06-06 00:41:04 +00:00
aconst_null,
aload,
aload_0,
aload_1,
aload_2,
aload_3,
2007-06-05 00:28:52 +00:00
anewarray,
areturn,
arraylength,
2007-06-06 00:41:04 +00:00
astore,
astore_0,
astore_1,
astore_2,
astore_3,
2007-06-05 00:28:52 +00:00
athrow,
baload,
bastore,
bipush,
breakpoint,
caload,
castore,
checkcast,
d2f,
d2i,
d2l,
dadd,
daload,
dastore,
dcmpg,
dcmpl,
dconst,
ddiv,
dload,
dmul,
dneg,
drem,
dreturn,
dstore,
dsub,
dup,
2007-06-06 00:41:04 +00:00
dup_x1,
dup_x2,
2007-06-05 00:28:52 +00:00
dup2,
2007-06-06 00:41:04 +00:00
dup2_x1,
dup2_x2,
2007-06-05 00:28:52 +00:00
f2d,
f2i,
f2l,
fadd,
faload,
fastore,
fcmpg,
fcmpl,
fconst,
fdiv,
fload,
fmul,
fneg,
frem,
freturn,
fstore,
fsub,
getfield,
getstatic,
goto_,
2007-06-06 00:41:04 +00:00
goto_w,
2007-06-05 00:28:52 +00:00
i2b,
i2c,
i2d,
i2f,
i2l,
i2s,
iadd,
iaload,
iand,
iastore,
2007-06-06 00:41:04 +00:00
iconst_0,
iconst_1,
iconst_2,
iconst_3,
iconst_4,
iconst_5,
2007-06-05 00:28:52 +00:00
idiv,
if_,
2007-06-06 00:41:04 +00:00
if_acmpeq,
if_acmpne,
if_icmpeq,
if_icmpne,
if_icmpgt,
if_icmpge,
if_icmplt,
if_icmple,
2007-06-05 00:28:52 +00:00
ifeq,
ifge,
ifgt,
ifle,
iflt,
ifne,
ifnonnull,
ifnull,
iinc,
iload,
2007-06-06 00:41:04 +00:00
iload_0,
iload_1,
iload_2,
iload_3,
2007-06-05 00:28:52 +00:00
impdep1,
impdep2,
imul,
ineg,
instanceof,
invokeinterface,
invokespecial,
invokestatic,
invokevirtual,
ior,
irem,
ireturn,
ishl,
ishr,
istore,
2007-06-06 00:41:04 +00:00
istore_0,
istore_1,
istore_2,
istore_3,
2007-06-05 00:28:52 +00:00
isub,
iushr,
ixor,
jsr,
2007-06-06 00:41:04 +00:00
jsr_w,
2007-06-05 00:28:52 +00:00
l2d,
l2f,
l2i,
ladd,
laload,
land,
lastore,
lcmp,
2007-06-06 00:41:04 +00:00
lconst_0,
lconst_1,
2007-06-05 00:28:52 +00:00
ldc,
2007-06-06 00:41:04 +00:00
ldc_w,
ldc2_w,
2007-06-05 00:28:52 +00:00
ldiv,
lload,
2007-06-06 00:41:04 +00:00
lload_0,
lload_1,
lload_2,
lload_3,
2007-06-05 00:28:52 +00:00
lmul,
lneg,
lookupswitch,
lor,
lrem,
lreturn,
lshl,
lshr,
lstore,
2007-06-06 00:41:04 +00:00
lstore_0,
lstore_1,
lstore_2,
lstore_3,
2007-06-05 00:28:52 +00:00
lsub,
lushr,
lxor,
monitorenter,
monitorexit,
multianewarray,
new_,
newarray,
nop,
pop,
2007-06-05 00:28:52 +00:00
pop2,
putfield,
putstatic,
ret,
return_,
saload,
sastore,
sipush,
swap,
tableswitch,
wide
};
2007-06-06 00:41:04 +00:00
enum TypeCode {
T_BOOLEAN = 4,
T_CHAR = 5,
T_FLOAT = 6,
T_DOUBLE = 7,
T_BYTE = 8,
T_SHORT = 9,
T_INT = 10,
T_LONG = 11
};
2007-06-16 01:02:24 +00:00
enum Constant {
CONSTANT_Class = 7,
CONSTANT_Fieldref = 9,
CONSTANT_Methodref = 10,
CONSTANT_InterfaceMethodref = 11,
CONSTANT_String = 8,
CONSTANT_Integer = 3,
CONSTANT_Float = 4,
CONSTANT_Long = 5,
CONSTANT_Double = 6,
CONSTANT_NameAndType = 12,
CONSTANT_Utf8 = 1
};
const unsigned ACC_PUBLIC = 1 << 0;
const unsigned ACC_PRIVATE = 1 << 1;
const unsigned ACC_PROTECTED = 1 << 2;
const unsigned ACC_STATIC = 1 << 3;
const unsigned ACC_FINAL = 1 << 4;
const unsigned ACC_SUPER = 1 << 5;
const unsigned ACC_VOLATILE = 1 << 6;
const unsigned ACC_TRANSIENT = 1 << 7;
const unsigned ACC_INTERFACE = 1 << 9;
const unsigned ACC_ABSTRACT = 1 << 10;
} // namespace vm
2007-06-06 00:41:04 +00:00
#endif//CONSTANTS_H