jdk.internal.org.objectweb.asm.tree.JumpInsnNode Java Examples
The following examples show how to use
jdk.internal.org.objectweb.asm.tree.JumpInsnNode.
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: Subroutine.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #2
Source File: Subroutine.java From hottub with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #3
Source File: Subroutine.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #4
Source File: Subroutine.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #5
Source File: Subroutine.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #6
Source File: Subroutine.java From Bytecoder with Apache License 2.0 | 6 votes |
/** * Merges the given subroutine into this subroutine. The local variables read or written by the * given subroutine are marked as read or written by this one, and the callers of the given * subroutine are added as callers of this one (if both have the same start). * * @param subroutine another subroutine. This subroutine is left unchanged by this method. * @return whether this subroutine has been modified by this method. */ public boolean merge(final Subroutine subroutine) { boolean changed = false; for (int i = 0; i < localsUsed.length; ++i) { if (subroutine.localsUsed[i] && !localsUsed[i]) { localsUsed[i] = true; changed = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changed = true; } } } return changed; }
Example #7
Source File: Subroutine.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #8
Source File: Subroutine.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #9
Source File: Subroutine.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #10
Source File: Subroutine.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #11
Source File: Subroutine.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #12
Source File: Subroutine.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #13
Source File: Subroutine.java From nashorn with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #14
Source File: Subroutine.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #15
Source File: Subroutine.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public boolean merge(final Subroutine subroutine) throws AnalyzerException { boolean changes = false; for (int i = 0; i < access.length; ++i) { if (subroutine.access[i] && !access[i]) { access[i] = true; changes = true; } } if (subroutine.start == start) { for (int i = 0; i < subroutine.callers.size(); ++i) { JumpInsnNode caller = subroutine.callers.get(i); if (!callers.contains(caller)) { callers.add(caller); changes = true; } } } return changes; }
Example #16
Source File: Subroutine.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Subroutine copy() { Subroutine result = new Subroutine(); result.start = start; result.access = new boolean[access.length]; System.arraycopy(access, 0, result.access, 0, access.length); result.callers = new ArrayList<JumpInsnNode>(callers); return result; }
Example #17
Source File: Subroutine.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
Subroutine(final LabelNode start, final int maxLocals, final JumpInsnNode caller) { this.start = start; this.access = new boolean[maxLocals]; this.callers = new ArrayList<JumpInsnNode>(); callers.add(caller); }
Example #18
Source File: JSRInlinerAdapter.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Detects a JSR instruction and sets a flag to indicate we will need to do * inlining. */ @Override public void visitJumpInsn(final int opcode, final Label lbl) { super.visitJumpInsn(opcode, lbl); LabelNode ln = ((JumpInsnNode) instructions.getLast()).label; if (opcode == JSR && !subroutineHeads.containsKey(ln)) { subroutineHeads.put(ln, new BitSet()); } }
Example #19
Source File: Subroutine.java From nashorn with GNU General Public License v2.0 | 5 votes |
public Subroutine copy() { Subroutine result = new Subroutine(); result.start = start; result.access = new boolean[access.length]; System.arraycopy(access, 0, result.access, 0, access.length); result.callers = new ArrayList<JumpInsnNode>(callers); return result; }
Example #20
Source File: Subroutine.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
Subroutine(final LabelNode start, final int maxLocals, final JumpInsnNode caller) { this.start = start; this.access = new boolean[maxLocals]; this.callers = new ArrayList<JumpInsnNode>(); callers.add(caller); }
Example #21
Source File: Subroutine.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public Subroutine copy() { Subroutine result = new Subroutine(); result.start = start; result.access = new boolean[access.length]; System.arraycopy(access, 0, result.access, 0, access.length); result.callers = new ArrayList<JumpInsnNode>(callers); return result; }
Example #22
Source File: Subroutine.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public Subroutine copy() { Subroutine result = new Subroutine(); result.start = start; result.access = new boolean[access.length]; System.arraycopy(access, 0, result.access, 0, access.length); result.callers = new ArrayList<JumpInsnNode>(callers); return result; }
Example #23
Source File: Subroutine.java From nashorn with GNU General Public License v2.0 | 5 votes |
Subroutine( final LabelNode start, final int maxLocals, final JumpInsnNode caller) { this.start = start; this.access = new boolean[maxLocals]; this.callers = new ArrayList<JumpInsnNode>(); callers.add(caller); }
Example #24
Source File: JSRInlinerAdapter.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Detects a JSR instruction and sets a flag to indicate we will need to do * inlining. */ @Override public void visitJumpInsn(final int opcode, final Label lbl) { super.visitJumpInsn(opcode, lbl); LabelNode ln = ((JumpInsnNode) instructions.getLast()).label; if (opcode == JSR && !subroutineHeads.containsKey(ln)) { subroutineHeads.put(ln, new BitSet()); } }
Example #25
Source File: Subroutine.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
Subroutine(final LabelNode start, final int maxLocals, final JumpInsnNode caller) { this.start = start; this.access = new boolean[maxLocals]; this.callers = new ArrayList<JumpInsnNode>(); callers.add(caller); }
Example #26
Source File: Subroutine.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
public Subroutine copy() { Subroutine result = new Subroutine(); result.start = start; result.access = new boolean[access.length]; System.arraycopy(access, 0, result.access, 0, access.length); result.callers = new ArrayList<JumpInsnNode>(callers); return result; }
Example #27
Source File: JSRInlinerAdapter.java From nashorn with GNU General Public License v2.0 | 5 votes |
/** * Detects a JSR instruction and sets a flag to indicate we will need to do * inlining. */ @Override public void visitJumpInsn(final int opcode, final Label lbl) { super.visitJumpInsn(opcode, lbl); LabelNode ln = ((JumpInsnNode) instructions.getLast()).label; if (opcode == JSR && !subroutineHeads.containsKey(ln)) { subroutineHeads.put(ln, new BitSet()); } }
Example #28
Source File: JSRInlinerAdapter.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** * Detects a JSR instruction and sets a flag to indicate we will need to do * inlining. */ @Override public void visitJumpInsn(final int opcode, final Label lbl) { super.visitJumpInsn(opcode, lbl); LabelNode ln = ((JumpInsnNode) instructions.getLast()).label; if (opcode == JSR && !subroutineHeads.containsKey(ln)) { subroutineHeads.put(ln, new BitSet()); } }
Example #29
Source File: JSRInlinerAdapter.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Detects a JSR instruction and sets a flag to indicate we will need to do * inlining. */ @Override public void visitJumpInsn(final int opcode, final Label lbl) { super.visitJumpInsn(opcode, lbl); LabelNode ln = ((JumpInsnNode) instructions.getLast()).label; if (opcode == JSR && !subroutineHeads.containsKey(ln)) { subroutineHeads.put(ln, new BitSet()); } }
Example #30
Source File: Subroutine.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
Subroutine(final LabelNode start, final int maxLocals, final JumpInsnNode caller) { this.start = start; this.access = new boolean[maxLocals]; this.callers = new ArrayList<JumpInsnNode>(); callers.add(caller); }