Java Code Examples for sun.jvm.hotspot.utilities.AddressOps#lt()
The following examples show how to use
sun.jvm.hotspot.utilities.AddressOps#lt() .
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: BasicLineNumberMapping.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private BasicLineNumberInfo searchLineNumbers(Address addr, int lowIdx, int highIdx) { if (highIdx < lowIdx) return null; if (lowIdx == highIdx) { // Base case: see whether start PC is less than or equal to addr if (check(addr, lowIdx)) { return get(lowIdx); } else { return null; } } else if (lowIdx == highIdx - 1) { if (check(addr, lowIdx)) { return get(lowIdx); } else if (check(addr, highIdx)) { return get(highIdx); } else { return null; } } int midIdx = (lowIdx + highIdx) >> 1; BasicLineNumberInfo info = get(midIdx); if (AddressOps.lt(addr, info.getStartPC())) { // Always move search down return searchLineNumbers(addr, lowIdx, midIdx); } else if (AddressOps.equal(addr, info.getStartPC())) { return info; } else { // Move search up return searchLineNumbers(addr, midIdx, highIdx); } }
Example 2
Source File: BasicLineNumberMapping.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private BasicLineNumberInfo searchLineNumbers(Address addr, int lowIdx, int highIdx) { if (highIdx < lowIdx) return null; if (lowIdx == highIdx) { // Base case: see whether start PC is less than or equal to addr if (check(addr, lowIdx)) { return get(lowIdx); } else { return null; } } else if (lowIdx == highIdx - 1) { if (check(addr, lowIdx)) { return get(lowIdx); } else if (check(addr, highIdx)) { return get(highIdx); } else { return null; } } int midIdx = (lowIdx + highIdx) >> 1; BasicLineNumberInfo info = get(midIdx); if (AddressOps.lt(addr, info.getStartPC())) { // Always move search down return searchLineNumbers(addr, lowIdx, midIdx); } else if (AddressOps.equal(addr, info.getStartPC())) { return info; } else { // Move search up return searchLineNumbers(addr, midIdx, highIdx); } }
Example 3
Source File: BasicLineNumberMapping.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private BasicLineNumberInfo searchLineNumbers(Address addr, int lowIdx, int highIdx) { if (highIdx < lowIdx) return null; if (lowIdx == highIdx) { // Base case: see whether start PC is less than or equal to addr if (check(addr, lowIdx)) { return get(lowIdx); } else { return null; } } else if (lowIdx == highIdx - 1) { if (check(addr, lowIdx)) { return get(lowIdx); } else if (check(addr, highIdx)) { return get(highIdx); } else { return null; } } int midIdx = (lowIdx + highIdx) >> 1; BasicLineNumberInfo info = get(midIdx); if (AddressOps.lt(addr, info.getStartPC())) { // Always move search down return searchLineNumbers(addr, lowIdx, midIdx); } else if (AddressOps.equal(addr, info.getStartPC())) { return info; } else { // Move search up return searchLineNumbers(addr, midIdx, highIdx); } }
Example 4
Source File: BasicLineNumberMapping.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private BasicLineNumberInfo searchLineNumbers(Address addr, int lowIdx, int highIdx) { if (highIdx < lowIdx) return null; if (lowIdx == highIdx) { // Base case: see whether start PC is less than or equal to addr if (check(addr, lowIdx)) { return get(lowIdx); } else { return null; } } else if (lowIdx == highIdx - 1) { if (check(addr, lowIdx)) { return get(lowIdx); } else if (check(addr, highIdx)) { return get(highIdx); } else { return null; } } int midIdx = (lowIdx + highIdx) >> 1; BasicLineNumberInfo info = get(midIdx); if (AddressOps.lt(addr, info.getStartPC())) { // Always move search down return searchLineNumbers(addr, lowIdx, midIdx); } else if (AddressOps.equal(addr, info.getStartPC())) { return info; } else { // Move search up return searchLineNumbers(addr, midIdx, highIdx); } }
Example 5
Source File: BasicLineNumberMapping.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private BasicLineNumberInfo searchLineNumbers(Address addr, int lowIdx, int highIdx) { if (highIdx < lowIdx) return null; if (lowIdx == highIdx) { // Base case: see whether start PC is less than or equal to addr if (check(addr, lowIdx)) { return get(lowIdx); } else { return null; } } else if (lowIdx == highIdx - 1) { if (check(addr, lowIdx)) { return get(lowIdx); } else if (check(addr, highIdx)) { return get(highIdx); } else { return null; } } int midIdx = (lowIdx + highIdx) >> 1; BasicLineNumberInfo info = get(midIdx); if (AddressOps.lt(addr, info.getStartPC())) { // Always move search down return searchLineNumbers(addr, lowIdx, midIdx); } else if (AddressOps.equal(addr, info.getStartPC())) { return info; } else { // Move search up return searchLineNumbers(addr, midIdx, highIdx); } }
Example 6
Source File: BasicLineNumberMapping.java From hottub with GNU General Public License v2.0 | 5 votes |
private BasicLineNumberInfo searchLineNumbers(Address addr, int lowIdx, int highIdx) { if (highIdx < lowIdx) return null; if (lowIdx == highIdx) { // Base case: see whether start PC is less than or equal to addr if (check(addr, lowIdx)) { return get(lowIdx); } else { return null; } } else if (lowIdx == highIdx - 1) { if (check(addr, lowIdx)) { return get(lowIdx); } else if (check(addr, highIdx)) { return get(highIdx); } else { return null; } } int midIdx = (lowIdx + highIdx) >> 1; BasicLineNumberInfo info = get(midIdx); if (AddressOps.lt(addr, info.getStartPC())) { // Always move search down return searchLineNumbers(addr, lowIdx, midIdx); } else if (AddressOps.equal(addr, info.getStartPC())) { return info; } else { // Move search up return searchLineNumbers(addr, midIdx, highIdx); } }
Example 7
Source File: BasicLineNumberMapping.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private BasicLineNumberInfo searchLineNumbers(Address addr, int lowIdx, int highIdx) { if (highIdx < lowIdx) return null; if (lowIdx == highIdx) { // Base case: see whether start PC is less than or equal to addr if (check(addr, lowIdx)) { return get(lowIdx); } else { return null; } } else if (lowIdx == highIdx - 1) { if (check(addr, lowIdx)) { return get(lowIdx); } else if (check(addr, highIdx)) { return get(highIdx); } else { return null; } } int midIdx = (lowIdx + highIdx) >> 1; BasicLineNumberInfo info = get(midIdx); if (AddressOps.lt(addr, info.getStartPC())) { // Always move search down return searchLineNumbers(addr, lowIdx, midIdx); } else if (AddressOps.equal(addr, info.getStartPC())) { return info; } else { // Move search up return searchLineNumbers(addr, midIdx, highIdx); } }
Example 8
Source File: BasicLineNumberMapping.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private BasicLineNumberInfo searchLineNumbers(Address addr, int lowIdx, int highIdx) { if (highIdx < lowIdx) return null; if (lowIdx == highIdx) { // Base case: see whether start PC is less than or equal to addr if (check(addr, lowIdx)) { return get(lowIdx); } else { return null; } } else if (lowIdx == highIdx - 1) { if (check(addr, lowIdx)) { return get(lowIdx); } else if (check(addr, highIdx)) { return get(highIdx); } else { return null; } } int midIdx = (lowIdx + highIdx) >> 1; BasicLineNumberInfo info = get(midIdx); if (AddressOps.lt(addr, info.getStartPC())) { // Always move search down return searchLineNumbers(addr, lowIdx, midIdx); } else if (AddressOps.equal(addr, info.getStartPC())) { return info; } else { // Move search up return searchLineNumbers(addr, midIdx, highIdx); } }