本文整理汇总了Java中org.apache.bcel.generic.AASTORE类的典型用法代码示例。如果您正苦于以下问题:Java AASTORE类的具体用法?Java AASTORE怎么用?Java AASTORE使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AASTORE类属于org.apache.bcel.generic包,在下文中一共展示了AASTORE类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: visitAASTORE
import org.apache.bcel.generic.AASTORE; //导入依赖的package包/类
@Override
public void visitAASTORE(AASTORE obj) {
try {
Taint valueTaint = getFrame().popValue();
getFrame().popValue(); // array index
Taint arrayTaint = getFrame().popValue();
Taint merge = Taint.merge(valueTaint, arrayTaint);
setLocalVariableTaint(merge, arrayTaint);
Taint stackTop = null;
if (getFrame().getStackDepth() > 0) {
stackTop = getFrame().getTopValue();
}
// varargs use duplicated values
if (stackTop == arrayTaint) {
getFrame().popValue();
getFrame().pushValue(new Taint(merge));
}
} catch (DataflowAnalysisException ex) {
throw new InvalidBytecodeException("Not enough values on the stack", ex);
}
}
开发者ID:blackarbiter,项目名称:Android_Code_Arbiter,代码行数:22,代码来源:TaintFrameModelingVisitor.java
示例2: storeLocal
import org.apache.bcel.generic.AASTORE; //导入依赖的package包/类
public void storeLocal(int pc, int slot) {
boolean isupval = pi.isUpvalueAssign(pc, slot);
int index = findSlotIndex( slot, isupval );
if (isupval) {
boolean isupcreate = pi.isUpvalueCreate(pc, slot);
if ( isupcreate ) {
append(factory.createInvoke(classname, "newupe", TYPE_LOCALUPVALUE, ARG_TYPES_NONE, Constants.INVOKESTATIC));
append(InstructionConstants.DUP);
append(new ASTORE(index));
} else {
append(new ALOAD(index));
}
append(InstructionConstants.SWAP);
append(new PUSH(cp, 0));
append(InstructionConstants.SWAP);
append(InstructionConstants.AASTORE);
} else {
append(new ASTORE(index));
}
}
开发者ID:gnosygnu,项目名称:luaj_xowa,代码行数:21,代码来源:JavaBuilder.java
示例3: storeUpvalue
import org.apache.bcel.generic.AASTORE; //导入依赖的package包/类
public void storeUpvalue(int pc, int upindex, int slot) {
boolean isrw = pi.isReadWriteUpvalue( pi.upvals[upindex] );
append(InstructionConstants.THIS);
if ( isrw ) {
append(factory.createFieldAccess(classname, upvalueName(upindex), TYPE_LOCALUPVALUE, Constants.GETFIELD));
append(new PUSH(cp,0));
loadLocal(pc, slot);
append(InstructionConstants.AASTORE);
} else {
loadLocal(pc, slot);
append(factory.createFieldAccess(classname, upvalueName(upindex), TYPE_LUAVALUE, Constants.PUTFIELD));
}
}
开发者ID:gnosygnu,项目名称:luaj_xowa,代码行数:14,代码来源:JavaBuilder.java
示例4: loadArrayArgs
import org.apache.bcel.generic.AASTORE; //导入依赖的package包/类
public void loadArrayArgs(int pc, int firstslot, int nargs) {
append(new PUSH(cp, nargs));
append(new ANEWARRAY(cp.addClass(STR_LUAVALUE)));
for ( int i=0; i<nargs; i++ ) {
append(InstructionConstants.DUP);
append(new PUSH(cp, i));
loadLocal(pc, firstslot++);
append(new AASTORE());
}
}
开发者ID:gnosygnu,项目名称:luaj_xowa,代码行数:11,代码来源:JavaBuilder.java
示例5: isArrayStore
import org.apache.bcel.generic.AASTORE; //导入依赖的package包/类
public boolean isArrayStore(Instruction instruction) {
return instruction instanceof AASTORE || instruction instanceof BASTORE ||
instruction instanceof CASTORE || instruction instanceof DASTORE ||
instruction instanceof FASTORE || instruction instanceof IASTORE ||
instruction instanceof LASTORE || instruction instanceof SASTORE;
}
开发者ID:pieterhijma,项目名称:cashmere,代码行数:7,代码来源:MethodGen.java
示例6: createInstructionAastore
import org.apache.bcel.generic.AASTORE; //导入依赖的package包/类
@SuppressWarnings("unused")
// Called using reflection
private Instruction createInstructionAastore(Element inst) {
return new AASTORE();
}
开发者ID:shannah,项目名称:cn1,代码行数:6,代码来源:JavaByteCodeOutputProcess.java
示例7: visitAASTORE
import org.apache.bcel.generic.AASTORE; //导入依赖的package包/类
@Override
public void visitAASTORE(AASTORE arr) {
handleArrayStore(arr);
}
开发者ID:ytus,项目名称:findbugs-all-the-bugs,代码行数:5,代码来源:ResourceValueFrameModelingVisitor.java
注:本文中的org.apache.bcel.generic.AASTORE类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论