/*
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
* Copyright (c) 2002-2010 Eric Lafortune (eric@graphics.cornell.edu)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package proguard.optimize.peephole;
import proguard.classfile.constant.*;
import proguard.classfile.instruction.*;
import proguard.classfile.util.InstructionSequenceMatcher;
/**
* This class contains a set of instruction sequences and their suggested
* replacements.
*
* @see InstructionSequencesReplacer
* @author Eric Lafortune
*/
public class InstructionSequenceConstants
{
public static final int X = InstructionSequenceMatcher.X;
public static final int Y = InstructionSequenceMatcher.Y;
public static final int Z = InstructionSequenceMatcher.Z;
public static final int A = InstructionSequenceMatcher.A;
public static final int B = InstructionSequenceMatcher.B;
public static final int C = InstructionSequenceMatcher.C;
public static final int D = InstructionSequenceMatcher.D;
private static final int I_32768 = 0;
private static final int I_65536 = 1;
private static final int I_16777216 = 2;
// private static final int I_0x000000ff
private static final int I_0x0000ff00 = 3;
private static final int I_0x00ff0000 = 4;
private static final int I_0xff000000 = 5;
private static final int I_0x0000ffff = 6;
private static final int I_0xffff0000 = 7;
private static final int L_M1 = 8;
private static final int L_2 = 9;
private static final int L_4 = 10;
private static final int L_8 = 11;
private static final int L_16 = 12;
private static final int L_32 = 13;
private static final int L_64 = 14;
private static final int L_128 = 15;
private static final int L_256 = 16;
private static final int L_512 = 17;
private static final int L_1024 = 18;
private static final int L_2048 = 19;
private static final int L_4096 = 20;
private static final int L_8192 = 21;
private static final int L_16384 = 22;
private static final int L_32768 = 23;
private static final int L_65536 = 24;
private static final int L_16777216 = 25;
private static final int L_4294967296 = 26;
private static final int L_0x00000000ffffffff = 27;
private static final int L_0xffffffff00000000 = 28;
private static final int F_M1 = 29;
private static final int D_M1 = 30;
private static final int FIELD_I = 31;
private static final int FIELD_L = 32;
private static final int FIELD_F = 33;
private static final int FIELD_D = 34;
private static final int NAME_AND_TYPE_I = 35;
private static final int NAME_AND_TYPE_L = 36;
private static final int NAME_AND_TYPE_F = 37;
private static final int NAME_AND_TYPE_D = 38;
private static final int TYPE_I = 39;
private static final int TYPE_L = 40;
private static final int TYPE_F = 41;
private static final int TYPE_D = 42;
public static final Constant[] CONSTANTS = new Constant[]
{
new IntegerConstant(32768),
new IntegerConstant(65536),
new IntegerConstant(16777216),
new IntegerConstant(0x0000ff00),
new IntegerConstant(0x00ff0000),
new IntegerConstant(0xff000000),
new IntegerConstant(0x0000ffff),
new IntegerConstant(0xffff0000),
new LongConstant(-1L),
new LongConstant(2L),
new LongConstant(4L),
new LongConstant(8L),
new LongConstant(16L),
new LongConstant(32L),
new LongConstant(64L),
new LongConstant(128L),
new LongConstant(256L),
new LongConstant(512L),
new LongConstant(1024L),
new LongConstant(2048L),
new LongConstant(4096L),
new LongConstant(8192L),
new LongConstant(16384L),
new LongConstant(32768L),
new LongConstant(65536L),
new LongConstant(16777216L),
new LongConstant(4294967296L),
new LongConstant(0x00000000ffffffffL),
new LongConstant(0xffffffff00000000L),
new FloatConstant(-1f),
new DoubleConstant(-1d),
new FieldrefConstant(X, NAME_AND_TYPE_I, null, null),
new FieldrefConstant(X, NAME_AND_TYPE_L, null, null),
new FieldrefConstant(X, NAME_AND_TYPE_F, null, null),
new FieldrefConstant(X, NAME_AND_TYPE_D, null, null),
new NameAndTypeConstant(Y, TYPE_I),
new NameAndTypeConstant(Y, TYPE_L),
new NameAndTypeConstant(Y, TYPE_F),
new NameAndTypeConstant(Y, TYPE_D),
new Utf8Constant("I"),
new Utf8Constant("J"),
new Utf8Constant("F"),
new Utf8Constant("D"),
};
public static final Instruction[][][] VARIABLE = new Instruction[][][]
{
{ // nop = nothing
{
new SimpleInstruction(InstructionConstants.OP_NOP),
},{
// Nothing.
},
},
{ // iload/pop = nothing
{
new VariableInstruction(InstructionConstants.OP_ILOAD, X),
new SimpleInstruction(InstructionConstants.OP_POP),
},{
// Nothing.
},
},
{ // lload/pop2 = nothing
{
new VariableInstruction(InstructionConstants.OP_LLOAD, X),
new SimpleInstruction(InstructionConstants.OP_POP2),
},{
// Nothing.
},
},
{ // fload/pop = nothing
{
new VariableInstruction(InstructionConstants.OP_FLOAD, X),
new SimpleInstruction(InstructionConstants.OP_POP),
},{
// Nothing.
},
},
{ // dload/pop2 = nothing
{
new VariableInstruction(InstructionConstants.OP_DLOAD, X),
new SimpleInstruction(InstructionConstants.OP_POP2),
},{
// Nothing.
},
},
{ // aload/pop = nothing
{
new VariableInstruction(InstructionConstants.OP_ALOAD, X),
new SimpleInstruction(InstructionConstants.OP_POP),
},{
// Nothing.
},
},
{ // i = i = nothing
{
new VariableInstruction(InstructionConstants.OP_ILOAD, X),
new VariableInstruction(InstructionConstants.OP_ISTORE, X),
},{
// Nothing.
},
},
{ // l = l = nothing
{
new VariableInstruction(InstructionConstants.OP_LLOAD, X),
new VariableInstruction(InstructionConstants.OP_LSTORE, X),
},{
// Nothing.
没有合适的资源?快使用搜索试试~ 我知道了~
proguard4.5.1
共709个文件
java:579个
html:59个
gif:19个
5星 · 超过95%的资源 需积分: 9 49 下载量 161 浏览量
2011-01-21
21:01:16
上传
评论
收藏 2.33MB ZIP 举报
温馨提示
proguard4.5.1,用于j2me程序混淆打包
资源推荐
资源详情
资源评论
收起资源包目录
proguard4.5.1 (709个子文件)
retrace.bat 300B
proguardgui.bat 287B
proguard.bat 273B
style.css 2KB
style.css 1KB
screenshots_gui_small.gif 157KB
screenshot_gui1.gif 42KB
screenshot_gui7.gif 41KB
screenshot_gui4.gif 40KB
screenshot_gui6.gif 36KB
screenshot_gui3.gif 36KB
screenshot_gui2.gif 36KB
screenshot_gui5.gif 35KB
screenshot_gui8.gif 31KB
screenshot_console_small.gif 19KB
screenshot_console.gif 18KB
steel.gif 3KB
title.gif 3KB
attention.gif 896B
drop1.gif 803B
drop2.gif 620B
drop3.gif 175B
arrow.gif 112B
checkmark.gif 63B
usage.html 60KB
examples.html 50KB
troubleshooting.html 31KB
alternatives.html 28KB
ant.html 26KB
downloads.html 24KB
gui.html 20KB
refcard.html 19KB
examples.html 18KB
GPL.html 16KB
FAQ.html 12KB
introduction.html 7KB
optimizations.html 6KB
results.html 5KB
testimonials.html 5KB
usage.html 5KB
main.html 4KB
feedback.html 4KB
acknowledgements.html 3KB
index.html 3KB
limitations.html 3KB
screenshots.html 3KB
introduction.html 2KB
wtk.html 2KB
license.html 2KB
sections.html 2KB
package.html 2KB
quality.html 2KB
sections.html 2KB
GPL_exception.html 2KB
index.html 1KB
index.html 1KB
package.html 664B
title.html 451B
package.html 379B
package.html 162B
package.html 153B
package.html 147B
package.html 132B
package.html 129B
package.html 121B
package.html 104B
package.html 99B
package.html 94B
package.html 93B
package.html 91B
package.html 89B
package.html 87B
package.html 85B
package.html 84B
package.html 83B
package.html 82B
package.html 82B
package.html 81B
package.html 69B
package.html 67B
package.html 65B
package.html 64B
package.html 64B
favicon.ico 7KB
proguard.jar 658KB
proguardgui.jar 134KB
retrace.jar 7KB
annotations.jar 6KB
InstructionSequenceConstants.java 139KB
ProGuardGUI.java 87KB
EvaluationShrinker.java 78KB
ConfigurationParser.java 54KB
PartialEvaluator.java 50KB
ClassUtil.java 48KB
Optimizer.java 42KB
EvaluationSimplifier.java 38KB
CodeAttributeEditor.java 38KB
ProgramClassReader.java 37KB
Processor.java 35KB
ClassPrinter.java 34KB
共 709 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
- ye_hust2015-06-03好的资料,真的很好
- yanchun33492015-03-28在学习中,还不怎么会操作,但看文件,应该是有用的
- mysun11012014-06-23操作很简单
- q7812534332014-05-29为什么不成功啊 哎。努力学习中
- charleshot2012-07-25针对 Java class文件进行代码混淆的软件 操作很简单 速度比较快 总的来说不错 我一直在用
gundumw100
- 粉丝: 104
- 资源: 41
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功