jdk.nashorn.internal.ir.JumpToInlinedFinally Java Examples

The following examples show how to use jdk.nashorn.internal.ir.JumpToInlinedFinally. 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: Lower.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private static JumpToInlinedFinally createJumpToInlinedFinally(final FunctionNode fn, final List<Block> inlinedFinallies, final Block finallyBlock) {
    final String labelName = fn.uniqueName(":finally");
    final long token = finallyBlock.getToken();
    final int finish = finallyBlock.getFinish();
    inlinedFinallies.add(new Block(token, finish, new LabelNode(finallyBlock.getFirstStatementLineNumber(),
            token, finish, labelName, finallyBlock)));
    return new JumpToInlinedFinally(labelName);
}
 
Example #2
Source File: Lower.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private static JumpToInlinedFinally createJumpToInlinedFinally(final FunctionNode fn, final List<Block> inlinedFinallies, final Block finallyBlock) {
    final String labelName = fn.uniqueName(":finally");
    final long token = finallyBlock.getToken();
    final int finish = finallyBlock.getFinish();
    inlinedFinallies.add(new Block(token, finish, new LabelNode(finallyBlock.getFirstStatementLineNumber(),
            token, finish, labelName, finallyBlock)));
    return new JumpToInlinedFinally(labelName);
}
 
Example #3
Source File: Lower.java    From jdk8u_nashorn with GNU General Public License v2.0 5 votes vote down vote up
private static JumpToInlinedFinally createJumpToInlinedFinally(final FunctionNode fn, final List<Block> inlinedFinallies, final Block finallyBlock) {
    final String labelName = fn.uniqueName(":finally");
    final long token = finallyBlock.getToken();
    final int finish = finallyBlock.getFinish();
    inlinedFinallies.add(new Block(token, finish, new LabelNode(finallyBlock.getFirstStatementLineNumber(),
            token, finish, labelName, finallyBlock)));
    return new JumpToInlinedFinally(labelName);
}
 
Example #4
Source File: Lower.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static JumpToInlinedFinally createJumpToInlinedFinally(final FunctionNode fn, final List<Block> inlinedFinallies, final Block finallyBlock) {
    final String labelName = fn.uniqueName(":finally");
    final long token = finallyBlock.getToken();
    final int finish = finallyBlock.getFinish();
    inlinedFinallies.add(new Block(token, finish, new LabelNode(finallyBlock.getFirstStatementLineNumber(),
            token, finish, labelName, finallyBlock)));
    return new JumpToInlinedFinally(labelName);
}
 
Example #5
Source File: Lower.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private static JumpToInlinedFinally createJumpToInlinedFinally(final FunctionNode fn, final List<Block> inlinedFinallies, final Block finallyBlock) {
    final String labelName = fn.uniqueName(":finally");
    final long token = finallyBlock.getToken();
    final int finish = finallyBlock.getFinish();
    inlinedFinallies.add(new Block(token, finish, new LabelNode(finallyBlock.getFirstStatementLineNumber(),
            token, finish, labelName, finallyBlock)));
    return new JumpToInlinedFinally(labelName);
}
 
Example #6
Source File: Lower.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private static JumpToInlinedFinally createJumpToInlinedFinally(final FunctionNode fn, final List<Block> inlinedFinallies, final Block finallyBlock) {
    final String labelName = fn.uniqueName(":finally");
    final long token = finallyBlock.getToken();
    final int finish = finallyBlock.getFinish();
    inlinedFinallies.add(new Block(token, finish, new LabelNode(finallyBlock.getFirstStatementLineNumber(),
            token, finish, labelName, finallyBlock)));
    return new JumpToInlinedFinally(labelName);
}
 
Example #7
Source File: Lower.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private static JumpToInlinedFinally createJumpToInlinedFinally(final FunctionNode fn, final List<Block> inlinedFinallies, final Block finallyBlock) {
    final String labelName = fn.uniqueName(":finally");
    final long token = finallyBlock.getToken();
    final int finish = finallyBlock.getFinish();
    inlinedFinallies.add(new Block(token, finish, new LabelNode(finallyBlock.getFirstStatementLineNumber(),
            token, finish, labelName, finallyBlock)));
    return new JumpToInlinedFinally(labelName);
}
 
Example #8
Source File: Lower.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    addStatement(jumpToInlinedFinally);
    return false;
}
 
Example #9
Source File: Lower.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    addStatement(jumpToInlinedFinally);
    return false;
}
 
Example #10
Source File: SplitIntoFunctions.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Node leaveJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    return leaveJumpNode(jumpToInlinedFinally);
}
 
Example #11
Source File: LocalVariableTypesCalculator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    return enterJumpStatement(jumpToInlinedFinally);
}
 
Example #12
Source File: WeighNodes.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Node leaveJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    weight += BREAK_WEIGHT;
    return jumpToInlinedFinally;
}
 
Example #13
Source File: Lower.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    addStatement(jumpToInlinedFinally);
    return false;
}
 
Example #14
Source File: SplitIntoFunctions.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Node leaveJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    return leaveJumpNode(jumpToInlinedFinally);
}
 
Example #15
Source File: LocalVariableTypesCalculator.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    return enterJumpStatement(jumpToInlinedFinally);
}
 
Example #16
Source File: WeighNodes.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Node leaveJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    weight += BREAK_WEIGHT;
    return jumpToInlinedFinally;
}
 
Example #17
Source File: WeighNodes.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Node leaveJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    weight += BREAK_WEIGHT;
    return jumpToInlinedFinally;
}
 
Example #18
Source File: SplitIntoFunctions.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Node leaveJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    return leaveJumpNode(jumpToInlinedFinally);
}
 
Example #19
Source File: LocalVariableTypesCalculator.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    return enterJumpStatement(jumpToInlinedFinally);
}
 
Example #20
Source File: WeighNodes.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Node leaveJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    weight += BREAK_WEIGHT;
    return jumpToInlinedFinally;
}
 
Example #21
Source File: Lower.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    addStatement(jumpToInlinedFinally);
    return false;
}
 
Example #22
Source File: SplitIntoFunctions.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Node leaveJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    return leaveJumpNode(jumpToInlinedFinally);
}
 
Example #23
Source File: LocalVariableTypesCalculator.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    return enterJumpStatement(jumpToInlinedFinally);
}
 
Example #24
Source File: SplitIntoFunctions.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Node leaveJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    return leaveJumpNode(jumpToInlinedFinally);
}
 
Example #25
Source File: WeighNodes.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Node leaveJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    weight += BREAK_WEIGHT;
    return jumpToInlinedFinally;
}
 
Example #26
Source File: Lower.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    addStatement(jumpToInlinedFinally);
    return false;
}
 
Example #27
Source File: SplitIntoFunctions.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Node leaveJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    return leaveJumpNode(jumpToInlinedFinally);
}
 
Example #28
Source File: LocalVariableTypesCalculator.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    return enterJumpStatement(jumpToInlinedFinally);
}
 
Example #29
Source File: WeighNodes.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Node leaveJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    weight += BREAK_WEIGHT;
    return jumpToInlinedFinally;
}
 
Example #30
Source File: LocalVariableTypesCalculator.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterJumpToInlinedFinally(final JumpToInlinedFinally jumpToInlinedFinally) {
    return enterJumpStatement(jumpToInlinedFinally);
}