Java Code Examples for com.sun.org.apache.bcel.internal.util.ByteSequence#readInt()
The following examples show how to use
com.sun.org.apache.bcel.internal.util.ByteSequence#readInt() .
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: TABLESWITCH.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { super.initFromFile(bytes, wide); int low = bytes.readInt(); int high = bytes.readInt(); match_length = high - low + 1; fixed_length = (short)(13 + match_length * 4); length = (short)(fixed_length + padding); match = new int[match_length]; indices = new int[match_length]; targets = new InstructionHandle[match_length]; for(int i=low; i <= high; i++) match[i - low] = i; for(int i=0; i < match_length; i++) { indices[i] = bytes.readInt(); } }
Example 2
Source File: LOOKUPSWITCH.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { super.initFromFile(bytes, wide); // reads padding match_length = bytes.readInt(); fixed_length = (short)(9 + match_length * 8); length = (short)(fixed_length + padding); match = new int[match_length]; indices = new int[match_length]; targets = new InstructionHandle[match_length]; for(int i=0; i < match_length; i++) { match[i] = bytes.readInt(); indices[i] = bytes.readInt(); } }
Example 3
Source File: TABLESWITCH.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { super.initFromFile(bytes, wide); int low = bytes.readInt(); int high = bytes.readInt(); match_length = high - low + 1; fixed_length = (short)(13 + match_length * 4); length = (short)(fixed_length + padding); match = new int[match_length]; indices = new int[match_length]; targets = new InstructionHandle[match_length]; for(int i=low; i <= high; i++) match[i - low] = i; for(int i=0; i < match_length; i++) { indices[i] = bytes.readInt(); } }
Example 4
Source File: LOOKUPSWITCH.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { super.initFromFile(bytes, wide); // reads padding match_length = bytes.readInt(); fixed_length = (short)(9 + match_length * 8); length = (short)(fixed_length + padding); match = new int[match_length]; indices = new int[match_length]; targets = new InstructionHandle[match_length]; for(int i=0; i < match_length; i++) { match[i] = bytes.readInt(); indices[i] = bytes.readInt(); } }
Example 5
Source File: TABLESWITCH.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { super.initFromFile(bytes, wide); int low = bytes.readInt(); int high = bytes.readInt(); match_length = high - low + 1; fixed_length = (short)(13 + match_length * 4); length = (short)(fixed_length + padding); match = new int[match_length]; indices = new int[match_length]; targets = new InstructionHandle[match_length]; for(int i=low; i <= high; i++) match[i - low] = i; for(int i=0; i < match_length; i++) { indices[i] = bytes.readInt(); } }
Example 6
Source File: TABLESWITCH.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { super.initFromFile(bytes, wide); int low = bytes.readInt(); int high = bytes.readInt(); match_length = high - low + 1; fixed_length = (short)(13 + match_length * 4); length = (short)(fixed_length + padding); match = new int[match_length]; indices = new int[match_length]; targets = new InstructionHandle[match_length]; for(int i=low; i <= high; i++) match[i - low] = i; for(int i=0; i < match_length; i++) { indices[i] = bytes.readInt(); } }
Example 7
Source File: TABLESWITCH.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { super.initFromFile(bytes, wide); int low = bytes.readInt(); int high = bytes.readInt(); match_length = high - low + 1; fixed_length = (short)(13 + match_length * 4); length = (short)(fixed_length + padding); match = new int[match_length]; indices = new int[match_length]; targets = new InstructionHandle[match_length]; for(int i=low; i <= high; i++) match[i - low] = i; for(int i=0; i < match_length; i++) { indices[i] = bytes.readInt(); } }
Example 8
Source File: TABLESWITCH.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { super.initFromFile(bytes, wide); int low = bytes.readInt(); int high = bytes.readInt(); match_length = high - low + 1; fixed_length = (short)(13 + match_length * 4); length = (short)(fixed_length + padding); match = new int[match_length]; indices = new int[match_length]; targets = new InstructionHandle[match_length]; for(int i=low; i <= high; i++) match[i - low] = i; for(int i=0; i < match_length; i++) { indices[i] = bytes.readInt(); } }
Example 9
Source File: TABLESWITCH.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { super.initFromFile(bytes, wide); int low = bytes.readInt(); int high = bytes.readInt(); match_length = high - low + 1; fixed_length = (short)(13 + match_length * 4); length = (short)(fixed_length + padding); match = new int[match_length]; indices = new int[match_length]; targets = new InstructionHandle[match_length]; for(int i=low; i <= high; i++) match[i - low] = i; for(int i=0; i < match_length; i++) { indices[i] = bytes.readInt(); } }
Example 10
Source File: LOOKUPSWITCH.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { super.initFromFile(bytes, wide); // reads padding match_length = bytes.readInt(); fixed_length = (short)(9 + match_length * 8); length = (short)(fixed_length + padding); match = new int[match_length]; indices = new int[match_length]; targets = new InstructionHandle[match_length]; for(int i=0; i < match_length; i++) { match[i] = bytes.readInt(); indices[i] = bytes.readInt(); } }
Example 11
Source File: LOOKUPSWITCH.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { super.initFromFile(bytes, wide); // reads padding match_length = bytes.readInt(); fixed_length = (short)(9 + match_length * 8); length = (short)(fixed_length + padding); match = new int[match_length]; indices = new int[match_length]; targets = new InstructionHandle[match_length]; for(int i=0; i < match_length; i++) { match[i] = bytes.readInt(); indices[i] = bytes.readInt(); } }
Example 12
Source File: TABLESWITCH.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { super.initFromFile(bytes, wide); int low = bytes.readInt(); int high = bytes.readInt(); match_length = high - low + 1; fixed_length = (short)(13 + match_length * 4); length = (short)(fixed_length + padding); match = new int[match_length]; indices = new int[match_length]; targets = new InstructionHandle[match_length]; for(int i=low; i <= high; i++) match[i - low] = i; for(int i=0; i < match_length; i++) { indices[i] = bytes.readInt(); } }
Example 13
Source File: Select.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Read needed data (e.g. index) from file. */ @Override protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { padding = (4 - (bytes.getIndex() % 4)) % 4; // Compute number of pad bytes for(int i=0; i < padding; i++) { bytes.readByte(); } // Default branch target common for both cases (TABLESWITCH, LOOKUPSWITCH) index = bytes.readInt(); }
Example 14
Source File: Select.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Read needed data (e.g. index) from file. */ @Override protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { padding = (4 - (bytes.getIndex() % 4)) % 4; // Compute number of pad bytes for(int i=0; i < padding; i++) { bytes.readByte(); } // Default branch target common for both cases (TABLESWITCH, LOOKUPSWITCH) index = bytes.readInt(); }
Example 15
Source File: Select.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Read needed data (e.g. index) from file. */ @Override protected void initFromFile( final ByteSequence bytes, final boolean wide ) throws IOException { padding = (4 - (bytes.getIndex() % 4)) % 4; // Compute number of pad bytes for (int i = 0; i < padding; i++) { bytes.readByte(); } // Default branch target common for both cases (TABLESWITCH, LOOKUPSWITCH) super.setIndex(bytes.readInt()); }
Example 16
Source File: GOTO_W.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { index = bytes.readInt(); length = 5; }
Example 17
Source File: JSR_W.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { index = bytes.readInt(); length = 5; }
Example 18
Source File: GOTO_W.java From Bytecoder with Apache License 2.0 | 4 votes |
/** * Read needed data (e.g. index) from file. */ @Override protected void initFromFile( final ByteSequence bytes, final boolean wide ) throws IOException { super.setIndex(bytes.readInt()); super.setLength(5); }
Example 19
Source File: GOTO_W.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { index = bytes.readInt(); length = 5; }
Example 20
Source File: GOTO_W.java From JDKSourceCode1.8 with MIT License | 4 votes |
/** * Read needed data (e.g. index) from file. */ protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException { index = bytes.readInt(); length = 5; }