Available Methods
- ASM5 ( )
- ASM7 ( )
- ACC_STATIC
- ACC_PUBLIC
- ACC_PRIVATE
- ASM6 ( )
- INVOKESTATIC
- ACC_ABSTRACT
- ASM4 ( )
- ACC_PROTECTED
- ACC_INTERFACE
- ACC_SYNTHETIC
- ACC_FINAL
- RETURN
- INVOKEVIRTUAL
- ASM8 ( )
- INVOKEINTERFACE
- INVOKESPECIAL
- IRETURN
- ICONST_0 ( )
- PUTFIELD
- GETSTATIC
- GETFIELD
- DLOAD
- ACC_NATIVE
- ALOAD
- SIPUSH
- ICONST_2 ( )
- ILOAD
- ICONST_3 ( )
- LSTORE
- IFNONNULL
- ISTORE
- ICONST_4 ( )
- F_NEW
- ICONST_1 ( )
- DRETURN
- ACC_ENUM
- IF_ICMPEQ
- DCONST_1 ( )
- DCONST_0 ( )
- BIPUSH
- LMUL
- PUTSTATIC
- FSTORE
- DSTORE
- FRETURN
- DADD
- SALOAD
- ICONST_5 ( )
- DUP
- LLOAD
- ATHROW
- FLOAD
- F_SAME
- DASTORE
- ACC_DEPRECATED
- GOTO
- ASTORE
- DUP2 ( )
- ACC_BRIDGE
- T_BOOLEAN
- LRETURN
- IOR
- ACC_VOLATILE
- DALOAD
- LXOR
- NEWARRAY
- DNEG
- T_BYTE
- MULTIANEWARRAY
- T_CHAR
- IFEQ
- NOP
- I2S ( )
- IF_ICMPGE
- LREM
- INEG
- ARETURN
- T_INT
- T_FLOAT
- FCONST_1 ( )
- F_SAME1 ( )
- NEW
- LCMP
- FNEG
- LCONST_1 ( )
- LOR
- POP2 ( )
- IMUL
- FCONST_2 ( )
- DCMPL
- FCONST_0 ( )
- DUP_X1 ( )
- LDC
- F_APPEND
- ICONST_M1 ( )
- LSHR
- IF_ICMPLE
- LALOAD
- FREM
- ACC_ANNOTATION
- IF_ACMPEQ
- BALOAD
- ACC_SYNCHRONIZED
- BASTORE
- FALOAD
- AALOAD
- LSHL
- T_SHORT
- ISUB
- LOOKUPSWITCH
- IFNE
- IALOAD
- H_INVOKEINTERFACE
- LDIV
- ISHR
- ACC_STRICT
- LONG
- IF_ICMPLT
- LADD
- CHECKCAST
- IFLT
- LAND
- FMUL
- IF_ICMPGT
- LCONST_0 ( )
- T_DOUBLE
- FADD
- F_CHOP
- IFLE
- H_PUTSTATIC
- DCMPG
- F2L ( )
- IDIV
- POP
- ARRAYLENGTH
- DUP2_X1 ( )
- DDIV
- L2D ( )
- FCMPL
- ANEWARRAY
- FASTORE
- MONITOREXIT
- F_FULL
- IF_ICMPNE
- LSUB
- FSUB
- ISHL
- H_INVOKEVIRTUAL
- IXOR
- ACC_VARARGS
- MONITORENTER
- IAND
- DMUL
- F2I ( )
- DREM
- DSUB
- V1_7 ( )
- DUP2_X2 ( )
- T_LONG
- IREM
- ACC_SUPER
- ACONST_NULL
- V1_8 ( )
- H_GETFIELD
- FCMPG
- IFNULL
- ACC_TRANSIENT
- H_INVOKESTATIC
- IADD
- IASTORE
- D2I ( )
- AASTORE
- UNINITIALIZED_THIS
- LUSHR
- SWAP
- H_GETSTATIC
- INTEGER
- TOP
- ACC_TRANSITIVE
- D2F ( )
- LNEG
- IFGE
- CASTORE
- CALOAD
- JSR
- F2D ( )
- L2F ( )
- D2L ( )
- LASTORE
- I2C ( )
- H_NEWINVOKESPECIAL
- IFGT
- NULL
- I2F ( )
- L2I ( )
- INVOKEDYNAMIC
- V1_5 ( )
- IUSHR
- DUP_X2 ( )
- SASTORE
- SOURCE_DEPRECATED
- V1_6 ( )
- FDIV
- IINC
- ACC_MODULE
- TABLESWITCH
- RET
- IF_ACMPNE
- H_INVOKESPECIAL
- I2L ( )
- V1_3 ( )
- V1_1 ( )
- DOUBLE
- H_PUTFIELD
- V1_2 ( )
- INSTANCEOF
- I2B ( )
- ACC_MANDATED
- V1_4 ( )
- V11 ( )
- SOURCE_MASK
Related Classes
- java.util.Arrays
- java.io.File
- java.util.Collections
- java.io.InputStream
- java.util.Iterator
- java.lang.reflect.Method
- java.util.LinkedList
- java.util.concurrent.atomic.AtomicInteger
- java.lang.reflect.Modifier
- com.google.common.collect.ImmutableList
- java.util.ListIterator
- java.util.jar.JarEntry
- org.objectweb.asm.ClassReader
- org.objectweb.asm.MethodVisitor
- org.objectweb.asm.ClassWriter
- org.apache.commons.lang3.Validate
- org.objectweb.asm.Type
- org.objectweb.asm.ClassVisitor
- org.objectweb.asm.Label
- org.objectweb.asm.FieldVisitor
- org.objectweb.asm.tree.ClassNode
- org.objectweb.asm.tree.MethodNode
- org.objectweb.asm.AnnotationVisitor
- org.objectweb.asm.tree.AbstractInsnNode
- org.objectweb.asm.tree.MethodInsnNode
Java Code Examples for org.objectweb.asm.Opcodes#MONITORENTER
The following examples show how to use
org.objectweb.asm.Opcodes#MONITORENTER .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RejectionMethodVisitor.java From AVM with MIT License | 5 votes |
private void checkOpcode(int opcode) { if (false // We reject JSR and RET (although these haven't been generated in a long time, anyway, and aren't allowed in new class files). || (Opcodes.JSR == opcode) || (Opcodes.RET == opcode) // We also want to reject instructions which could interact with the thread state: MONITORENTER, MONITOREXIT. || (Opcodes.MONITORENTER == opcode) || (Opcodes.MONITOREXIT == opcode) ) { RejectedClassException.blacklistedOpcode(opcode); } }
Example 2
Source File: MonitorInstrument.java From dacapobench with Apache License 2.0 | 5 votes |
public void visitInsn(int opcode) { if (opcode == Opcodes.MONITORENTER) { has_monitor_operation = true; super.dup(); super.visitInsn(opcode); super.visitMethodInsn(Opcodes.INVOKESTATIC, className, LOG_INTERNAL_ENTER_METHOD, LOG_OBJECT_SIGNATURE); } else if (opcode == Opcodes.MONITOREXIT) { has_monitor_operation = true; super.dup(); super.visitMethodInsn(Opcodes.INVOKESTATIC, className, LOG_INTERNAL_EXIT_METHOD, LOG_OBJECT_SIGNATURE); super.visitInsn(opcode); } else { super.visitInsn(opcode); } }
Example 3
Source File: ClassParserUsingASM.java From spotbugs with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void visitInsn(int opcode) { switch (opcode) { case Opcodes.MONITORENTER: mBuilder.setUsesConcurrency(); break; case Opcodes.ARETURN: case Opcodes.IRETURN: case Opcodes.LRETURN: case Opcodes.DRETURN: case Opcodes.FRETURN: if (identityState == IdentityMethodState.LOADED_PARAMETER) { mBuilder.setIsIdentity(); } sawReturn = true; break; case Opcodes.RETURN: sawReturn = true; break; case Opcodes.ATHROW: if (stubState == StubState.INITIALIZE_RUNTIME) { sawStubThrow = true; } else if (justSawInitializationOfUnsupportedOperationException) { sawUnsupportedThrow = true; } else { sawNormalThrow = true; } break; default: break; } resetState(); }
Example 4
Source File: MonitoringFrame.java From tascalate-javaflow with Apache License 2.0 | 5 votes |
@Override public void execute(AbstractInsnNode insn, Interpreter interpreter) throws AnalyzerException { boolean never = false; if (never) { super.execute(insn, interpreter); return; } int insnOpcode = insn.getOpcode(); if (insnOpcode == Opcodes.MONITORENTER || insnOpcode == Opcodes.MONITOREXIT) { Value pop = pop(); interpreter.unaryOperation(insn, pop); int local = -1; for (int i = 0; i < getLocals(); i++) { if (getLocal(i) == pop) local = i; } if (local > -1) { if (insnOpcode == Opcodes.MONITORENTER) { monitorEnter(local); } else { monitorExit(local); } } } else { super.execute(insn, interpreter); } }
Example 5
Source File: MonitoringFrame.java From tascalate-javaflow with Apache License 2.0 | 5 votes |
@Override public void execute(AbstractInsnNode insn, Interpreter interpreter) throws AnalyzerException { boolean never = false; if (never) { super.execute(insn, interpreter); return; } int insnOpcode = insn.getOpcode(); if (insnOpcode == Opcodes.MONITORENTER || insnOpcode == Opcodes.MONITOREXIT) { Value pop = pop(); interpreter.unaryOperation(insn, pop); int local = -1; for (int i = 0; i < getLocals(); i++) { if (getLocal(i) == pop) local = i; } if (local > -1) { if (insnOpcode == Opcodes.MONITORENTER) { monitorEnter(local); } else { monitorExit(local); } } } else { super.execute(insn, interpreter); } }
Example 6
Source File: MonitoringFrame.java From tascalate-javaflow with Apache License 2.0 | 5 votes |
@Override public void execute(AbstractInsnNode insn, Interpreter interpreter) throws AnalyzerException { boolean never = false; if (never) { super.execute(insn, interpreter); return; } int insnOpcode = insn.getOpcode(); if (insnOpcode == Opcodes.MONITORENTER || insnOpcode == Opcodes.MONITOREXIT) { Value pop = pop(); interpreter.unaryOperation(insn, pop); int local = -1; for (int i = 0; i < getLocals(); i++) { if (getLocal(i) == pop) local = i; } if (local > -1) { if (insnOpcode == Opcodes.MONITORENTER) { monitorEnter(local); } else { monitorExit(local); } } } else { super.execute(insn, interpreter); } }