Java Code Examples for jdk.internal.org.objectweb.asm.Opcodes#NOP
The following examples show how to use
jdk.internal.org.objectweb.asm.Opcodes#NOP .
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: NashornTextifier.java From hottub with GNU General Public License v2.0 | 6 votes |
@Override public void visitInsn(final int opcode) { if(opcode == Opcodes.NOP) { if(lastWasEllipse) { getNextLabel(); return; } else if(lastWasNop) { getNextLabel(); addText(" ...\n"); lastWasEllipse = true; return; } else { lastWasNop = true; } } else { lastWasNop = lastWasEllipse = false; } final StringBuilder sb = new StringBuilder(); appendOpcode(sb, opcode).append('\n'); addText(sb); checkNoFallThru(opcode, null); }
Example 2
Source File: NashornTextifier.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override public void visitInsn(final int opcode) { if(opcode == Opcodes.NOP) { if(lastWasEllipse) { getNextLabel(); return; } else if(lastWasNop) { getNextLabel(); addText(" ...\n"); lastWasEllipse = true; return; } else { lastWasNop = true; } } else { lastWasNop = lastWasEllipse = false; } final StringBuilder sb = new StringBuilder(); appendOpcode(sb, opcode).append('\n'); addText(sb); checkNoFallThru(opcode, null); }
Example 3
Source File: NashornTextifier.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@Override public void visitInsn(final int opcode) { if(opcode == Opcodes.NOP) { if(lastWasEllipse) { getNextLabel(); return; } else if(lastWasNop) { getNextLabel(); addText(" ...\n"); lastWasEllipse = true; return; } else { lastWasNop = true; } } else { lastWasNop = lastWasEllipse = false; } final StringBuilder sb = new StringBuilder(); appendOpcode(sb, opcode).append('\n'); addText(sb); checkNoFallThru(opcode, null); }
Example 4
Source File: NashornTextifier.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@Override public void visitInsn(final int opcode) { if(opcode == Opcodes.NOP) { if(lastWasEllipse) { getNextLabel(); return; } else if(lastWasNop) { getNextLabel(); addText(" ...\n"); lastWasEllipse = true; return; } else { lastWasNop = true; } } else { lastWasNop = lastWasEllipse = false; } final StringBuilder sb = new StringBuilder(); appendOpcode(sb, opcode).append('\n'); addText(sb); checkNoFallThru(opcode, null); }
Example 5
Source File: NashornTextifier.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override public void visitInsn(final int opcode) { if(opcode == Opcodes.NOP) { if(lastWasEllipse) { getNextLabel(); return; } else if(lastWasNop) { getNextLabel(); addText(" ...\n"); lastWasEllipse = true; return; } else { lastWasNop = true; } } else { lastWasNop = lastWasEllipse = false; } final StringBuilder sb = new StringBuilder(); appendOpcode(sb, opcode).append('\n'); addText(sb); checkNoFallThru(opcode, null); }
Example 6
Source File: NashornTextifier.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
@Override public void visitInsn(final int opcode) { if(opcode == Opcodes.NOP) { if(lastWasEllipse) { getNextLabel(); return; } else if(lastWasNop) { getNextLabel(); addText(" ...\n"); lastWasEllipse = true; return; } else { lastWasNop = true; } } else { lastWasNop = lastWasEllipse = false; } final StringBuilder sb = new StringBuilder(); appendOpcode(sb, opcode).append('\n'); addText(sb); checkNoFallThru(opcode, null); }
Example 7
Source File: TypeConvertingMethodAdapter.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 8
Source File: TypeConvertingMethodAdapter.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 9
Source File: TypeConvertingMethodAdapter.java From hottub with GNU General Public License v2.0 | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 10
Source File: TypeConvertingMethodAdapter.java From Java8CN with Apache License 2.0 | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 11
Source File: TypeConvertingMethodAdapter.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 12
Source File: TypeConvertingMethodAdapter.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 13
Source File: TypeConvertingMethodAdapter.java From Bytecoder with Apache License 2.0 | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 14
Source File: TypeConvertingMethodAdapter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 15
Source File: TypeConvertingMethodAdapter.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 16
Source File: TypeConvertingMethodAdapter.java From JDKSourceCode1.8 with MIT License | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 17
Source File: TypeConvertingMethodAdapter.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 18
Source File: TypeConvertingMethodAdapter.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 19
Source File: TypeConvertingMethodAdapter.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
void widen(Wrapper ws, Wrapper wt) { if (ws != wt) { int opcode = wideningOpcodes[ws.ordinal()][wt.ordinal()]; if (opcode != Opcodes.NOP) { visitInsn(opcode); } } }
Example 20
Source File: CheckMethodAdapter.java From Bytecoder with Apache License 2.0 | 2 votes |
/** * Checks that the method to visit the given opcode is equal to the given method. * * @param opcode the opcode to be checked. * @param method the expected visit method. */ private static void checkOpcodeMethod(final int opcode, final Method method) { if (opcode < Opcodes.NOP || opcode > Opcodes.IFNONNULL || OPCODE_METHODS[opcode] != method) { throw new IllegalArgumentException("Invalid opcode: " + opcode); } }