📄 instructionsequenceconstants.java
字号:
new VariableInstruction(InstructionConstants.OP_IINC, X, A), }, }, { // i = i + s = i += s { new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_SIPUSH, A), new SimpleInstruction(InstructionConstants.OP_IADD), new VariableInstruction(InstructionConstants.OP_ISTORE, X), },{ new VariableInstruction(InstructionConstants.OP_IINC, X, A), }, }, { // i = i - -1 = i++ { new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_ICONST_M1), new SimpleInstruction(InstructionConstants.OP_ISUB), new VariableInstruction(InstructionConstants.OP_ISTORE, X), },{ new VariableInstruction(InstructionConstants.OP_IINC, X, 1), }, }, { // i = i - 1 = i-- { new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_ICONST_1), new SimpleInstruction(InstructionConstants.OP_ISUB), new VariableInstruction(InstructionConstants.OP_ISTORE, X), },{ new VariableInstruction(InstructionConstants.OP_IINC, X, -1), }, }, { // i = i - 2 = i -= 2 { new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_ICONST_2), new SimpleInstruction(InstructionConstants.OP_ISUB), new VariableInstruction(InstructionConstants.OP_ISTORE, X), },{ new VariableInstruction(InstructionConstants.OP_IINC, X, -2), }, }, { // i = i - 3 = i -= 3 { new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_ICONST_3), new SimpleInstruction(InstructionConstants.OP_ISUB), new VariableInstruction(InstructionConstants.OP_ISTORE, X), },{ new VariableInstruction(InstructionConstants.OP_IINC, X, -3), }, }, { // i = i - 4 = i -= 4 { new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_ICONST_4), new SimpleInstruction(InstructionConstants.OP_ISUB), new VariableInstruction(InstructionConstants.OP_ISTORE, X), },{ new VariableInstruction(InstructionConstants.OP_IINC, X, -4), }, }, { // i = i - 5 = i -= 5 { new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_ICONST_5), new SimpleInstruction(InstructionConstants.OP_ISUB), new VariableInstruction(InstructionConstants.OP_ISTORE, X), },{ new VariableInstruction(InstructionConstants.OP_IINC, X, -5), }, }, { // 0 * i = 0 { new SimpleInstruction(InstructionConstants.OP_ICONST_0), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new SimpleInstruction(InstructionConstants.OP_ICONST_0), }, }, { // 1 * i = i { new SimpleInstruction(InstructionConstants.OP_ICONST_1), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), }, }, { // 2 * i = i << 1 { new SimpleInstruction(InstructionConstants.OP_ICONST_2), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_ICONST_1), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 4 * i = i << 2 { new SimpleInstruction(InstructionConstants.OP_ICONST_4), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_ICONST_2), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 8 * i = i << 3 { new SimpleInstruction(InstructionConstants.OP_BIPUSH, 8), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_ICONST_3), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 16 * i = i << 4 { new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 4), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 32 * i = i << 5 { new SimpleInstruction(InstructionConstants.OP_BIPUSH, 32), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 5), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 64 * i = i << 6 { new SimpleInstruction(InstructionConstants.OP_BIPUSH, 64), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 6), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 128 * i = i << 7 { new SimpleInstruction(InstructionConstants.OP_SIPUSH, 128), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 7), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 256 * i = i << 8 { new SimpleInstruction(InstructionConstants.OP_SIPUSH, 256), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 8), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 512 * i = i << 9 { new SimpleInstruction(InstructionConstants.OP_SIPUSH, 512), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 9), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 1024 * i = i << 10 { new SimpleInstruction(InstructionConstants.OP_SIPUSH, 1024), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 10), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 2048 * i = i << 11 { new SimpleInstruction(InstructionConstants.OP_SIPUSH, 2048), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 11), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 4096 * i = i << 12 { new SimpleInstruction(InstructionConstants.OP_SIPUSH, 4096), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 12), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 8192 * i = i << 13 { new SimpleInstruction(InstructionConstants.OP_SIPUSH, 8192), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 13), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 16384 * i = i << 14 { new SimpleInstruction(InstructionConstants.OP_SIPUSH, 16384), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 14), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 32768 * i = i << 15 { new ConstantInstruction(InstructionConstants.OP_LDC, I_32768), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 15), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 65536 * i = i << 16 { new ConstantInstruction(InstructionConstants.OP_LDC, I_65536), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // 16777216 * i = i << 24 { new ConstantInstruction(InstructionConstants.OP_LDC, I_16777216), new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_IMUL), },{ new VariableInstruction(InstructionConstants.OP_ILOAD, X), new SimpleInstruction(InstructionConstants.OP_BIPUSH, 24), new SimpleInstruction(InstructionConstants.OP_ISHL), }, }, { // ... + 0 = ... { new SimpleInstruction(InstructionConstants.OP_ICONST_0), new SimpleInstruction(InstructionConstants.OP_IADD), },{ // Nothing. }, }, { // ... + 0L = ... { new SimpleInstruction(InstructionConstants.OP_LCONST_0), new SimpleInstruction(InstructionConstants.OP_LADD), },{ // Nothing. }, }, { // ... + 0f = ... { new SimpleInstruction(InstructionConstants.OP_FCONST_0), new SimpleInstruction(InstructionConstants.OP_FADD), },{ // Nothing. }, }, { // ... + 0d = ... { new SimpleInstruction(InstructionConstants.OP_DCONST_0), new SimpleInstruction(InstructionConstants.OP_DADD), },{ // Nothing. }, }, { // ... - 0 = ...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -