Java Code Examples for jdk.nashorn.internal.codegen.types.Type#isCategory2()
The following examples show how to use
jdk.nashorn.internal.codegen.types.Type#isCategory2() .
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: Label.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Performs various bookeeping when a value is stored in a local variable slot. * @param slot the slot written to * @param onlySymbolLiveValue if true, this is the symbol's only live value, and other values of the symbol * should be marked dead * @param type the type written to the slot */ void onLocalStore(final Type type, final int slot, final boolean onlySymbolLiveValue) { if(onlySymbolLiveValue) { final int fromSlot = slot == 0 ? 0 : (symbolBoundary.previousSetBit(slot - 1) + 1); final int toSlot = symbolBoundary.nextSetBit(slot) + 1; for(int i = fromSlot; i < toSlot; ++i) { localVariableTypes.set(i, Type.UNKNOWN); } invalidateLocalLoadsOnStack(fromSlot, toSlot); } else { invalidateLocalLoadsOnStack(slot, slot + type.getSlots()); } localVariableTypes.set(slot, type); if(type.isCategory2()) { localVariableTypes.set(slot + 1, Type.SLOT_2); } }
Example 2
Source File: Label.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Performs various bookeeping when a value is stored in a local variable slot. * @param slot the slot written to * @param onlySymbolLiveValue if true, this is the symbol's only live value, and other values of the symbol * should be marked dead * @param type the type written to the slot */ void onLocalStore(final Type type, final int slot, final boolean onlySymbolLiveValue) { if(onlySymbolLiveValue) { final int fromSlot = slot == 0 ? 0 : (symbolBoundary.previousSetBit(slot - 1) + 1); final int toSlot = symbolBoundary.nextSetBit(slot) + 1; for(int i = fromSlot; i < toSlot; ++i) { localVariableTypes.set(i, Type.UNKNOWN); } invalidateLocalLoadsOnStack(fromSlot, toSlot); } else { invalidateLocalLoadsOnStack(slot, slot + type.getSlots()); } localVariableTypes.set(slot, type); if(type.isCategory2()) { localVariableTypes.set(slot + 1, Type.SLOT_2); } }
Example 3
Source File: Label.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Performs various bookeeping when a value is stored in a local variable slot. * @param slot the slot written to * @param onlySymbolLiveValue if true, this is the symbol's only live value, and other values of the symbol * should be marked dead * @param type the type written to the slot */ void onLocalStore(final Type type, final int slot, final boolean onlySymbolLiveValue) { if(onlySymbolLiveValue) { final int fromSlot = slot == 0 ? 0 : (symbolBoundary.previousSetBit(slot - 1) + 1); final int toSlot = symbolBoundary.nextSetBit(slot) + 1; for(int i = fromSlot; i < toSlot; ++i) { localVariableTypes.set(i, Type.UNKNOWN); } invalidateLocalLoadsOnStack(fromSlot, toSlot); } else { invalidateLocalLoadsOnStack(slot, slot + type.getSlots()); } localVariableTypes.set(slot, type); if(type.isCategory2()) { localVariableTypes.set(slot + 1, Type.SLOT_2); } }
Example 4
Source File: Label.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Performs various bookeeping when a value is stored in a local variable slot. * @param slot the slot written to * @param onlySymbolLiveValue if true, this is the symbol's only live value, and other values of the symbol * should be marked dead * @param type the type written to the slot */ void onLocalStore(final Type type, final int slot, final boolean onlySymbolLiveValue) { if(onlySymbolLiveValue) { final int fromSlot = slot == 0 ? 0 : (symbolBoundary.previousSetBit(slot - 1) + 1); final int toSlot = symbolBoundary.nextSetBit(slot) + 1; for(int i = fromSlot; i < toSlot; ++i) { localVariableTypes.set(i, Type.UNKNOWN); } invalidateLocalLoadsOnStack(fromSlot, toSlot); } else { invalidateLocalLoadsOnStack(slot, slot + type.getSlots()); } localVariableTypes.set(slot, type); if(type.isCategory2()) { localVariableTypes.set(slot + 1, Type.SLOT_2); } }
Example 5
Source File: Label.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Performs various bookeeping when a value is stored in a local variable slot. * @param slot the slot written to * @param onlySymbolLiveValue if true, this is the symbol's only live value, and other values of the symbol * should be marked dead * @param type the type written to the slot */ void onLocalStore(final Type type, final int slot, final boolean onlySymbolLiveValue) { if(onlySymbolLiveValue) { final int fromSlot = slot == 0 ? 0 : (symbolBoundary.previousSetBit(slot - 1) + 1); final int toSlot = symbolBoundary.nextSetBit(slot) + 1; for(int i = fromSlot; i < toSlot; ++i) { localVariableTypes.set(i, Type.UNKNOWN); } invalidateLocalLoadsOnStack(fromSlot, toSlot); } else { invalidateLocalLoadsOnStack(slot, slot + type.getSlots()); } localVariableTypes.set(slot, type); if(type.isCategory2()) { localVariableTypes.set(slot + 1, Type.SLOT_2); } }
Example 6
Source File: Label.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Performs various bookeeping when a value is stored in a local variable slot. * @param slot the slot written to * @param onlySymbolLiveValue if true, this is the symbol's only live value, and other values of the symbol * should be marked dead * @param type the type written to the slot */ void onLocalStore(final Type type, final int slot, final boolean onlySymbolLiveValue) { if(onlySymbolLiveValue) { final int fromSlot = slot == 0 ? 0 : (symbolBoundary.previousSetBit(slot - 1) + 1); final int toSlot = symbolBoundary.nextSetBit(slot) + 1; for(int i = fromSlot; i < toSlot; ++i) { localVariableTypes.set(i, Type.UNKNOWN); } invalidateLocalLoadsOnStack(fromSlot, toSlot); } else { invalidateLocalLoadsOnStack(slot, slot + type.getSlots()); } localVariableTypes.set(slot, type); if(type.isCategory2()) { localVariableTypes.set(slot + 1, Type.SLOT_2); } }
Example 7
Source File: Label.java From jdk8u_nashorn with GNU General Public License v2.0 | 6 votes |
/** * Performs various bookeeping when a value is stored in a local variable slot. * @param slot the slot written to * @param onlySymbolLiveValue if true, this is the symbol's only live value, and other values of the symbol * should be marked dead * @param type the type written to the slot */ void onLocalStore(final Type type, final int slot, final boolean onlySymbolLiveValue) { if(onlySymbolLiveValue) { final int fromSlot = slot == 0 ? 0 : (symbolBoundary.previousSetBit(slot - 1) + 1); final int toSlot = symbolBoundary.nextSetBit(slot) + 1; for(int i = fromSlot; i < toSlot; ++i) { localVariableTypes.set(i, Type.UNKNOWN); } invalidateLocalLoadsOnStack(fromSlot, toSlot); } else { invalidateLocalLoadsOnStack(slot, slot + type.getSlots()); } localVariableTypes.set(slot, type); if(type.isCategory2()) { localVariableTypes.set(slot + 1, Type.SLOT_2); } }