jdk.nashorn.internal.ir.GetSplitState Java Examples

The following examples show how to use jdk.nashorn.internal.ir.GetSplitState. 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: SplitIntoFunctions.java    From jdk8u_nashorn with GNU General Public License v2.0 5 votes vote down vote up
private static IfNode makeIfStateEquals(final int lineNumber, final long token, final int finish,
        final int value, final Block pass, final Statement fail) {
    return new IfNode(lineNumber, token, finish,
            new BinaryNode(Token.recast(token, TokenType.EQ_STRICT),
                    GetSplitState.INSTANCE, intLiteral(value)),
            pass,
            fail == null ? null : new Block(NO_TOKEN, NO_FINISH, fail));
}
 
Example #2
Source File: SplitIntoFunctions.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private static IfNode makeIfStateEquals(final int lineNumber, final long token, final int finish,
        final int value, final Block pass, final Statement fail) {
    return new IfNode(lineNumber, token, finish,
            new BinaryNode(Token.recast(token, TokenType.EQ_STRICT),
                    GetSplitState.INSTANCE, intLiteral(value)),
            pass,
            fail == null ? null : new Block(NO_TOKEN, NO_FINISH, fail));
}
 
Example #3
Source File: SplitIntoFunctions.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private static IfNode makeIfStateEquals(final int lineNumber, final long token, final int finish,
        final int value, final Block pass, final Statement fail) {
    return new IfNode(lineNumber, token, finish,
            new BinaryNode(Token.recast(token, TokenType.EQ_STRICT),
                    GetSplitState.INSTANCE, intLiteral(value)),
            pass,
            fail == null ? null : new Block(NO_TOKEN, NO_FINISH, fail));
}
 
Example #4
Source File: SplitIntoFunctions.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private static IfNode makeIfStateEquals(final int lineNumber, final long token, final int finish,
        final int value, final Block pass, final Statement fail) {
    return new IfNode(lineNumber, token, finish,
            new BinaryNode(Token.recast(token, TokenType.EQ_STRICT),
                    GetSplitState.INSTANCE, intLiteral(value)),
            pass,
            fail == null ? null : new Block(NO_TOKEN, NO_FINISH, fail));
}
 
Example #5
Source File: SplitIntoFunctions.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private static IfNode makeIfStateEquals(final int lineNumber, final long token, final int finish,
        final int value, final Block pass, final Statement fail) {
    return new IfNode(lineNumber, token, finish,
            new BinaryNode(Token.recast(token, TokenType.EQ_STRICT),
                    GetSplitState.INSTANCE, intLiteral(value)),
            pass,
            fail == null ? null : new Block(NO_TOKEN, NO_FINISH, fail));
}
 
Example #6
Source File: SplitIntoFunctions.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private static IfNode makeIfStateEquals(final int lineNumber, final long token, final int finish,
        final int value, final Block pass, final Statement fail) {
    return new IfNode(lineNumber, token, finish,
            new BinaryNode(Token.recast(token, TokenType.EQ_STRICT),
                    GetSplitState.INSTANCE, intLiteral(value)),
            pass,
            fail == null ? null : new Block(NO_TOKEN, NO_FINISH, fail));
}
 
Example #7
Source File: SplitIntoFunctions.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static IfNode makeIfStateEquals(final int lineNumber, final long token, final int finish,
        final int value, final Block pass, final Statement fail) {
    return new IfNode(lineNumber, token, finish,
            new BinaryNode(Token.recast(token, TokenType.EQ_STRICT),
                    GetSplitState.INSTANCE, intLiteral(value)),
            pass,
            fail == null ? null : new Block(NO_TOKEN, NO_FINISH, fail));
}
 
Example #8
Source File: LocalVariableTypesCalculator.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return pushExpressionType(getSplitState);
}
 
Example #9
Source File: LocalVariableTypesCalculator.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return pushExpressionType(getSplitState);
}
 
Example #10
Source File: LocalVariableTypesCalculator.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return pushExpressionType(getSplitState);
}
 
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 enterGetSplitState(final GetSplitState getSplitState) {
    return pushExpressionType(getSplitState);
}
 
Example #12
Source File: LocalVariableTypesCalculator.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return pushExpressionType(getSplitState);
}
 
Example #13
Source File: LocalVariableTypesCalculator.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return pushExpressionType(getSplitState);
}
 
Example #14
Source File: LocalVariableTypesCalculator.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return pushExpressionType(getSplitState);
}
 
Example #15
Source File: NodeVisitor.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for leaving a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return processed node, which will replace the original one, or the original node
 */
public Node leaveGetSplitState(final GetSplitState getSplitState) {
    return leaveDefault(getSplitState);
}
 
Example #16
Source File: NodeVisitor.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for entering a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return true if traversal should continue and node children be traversed, false otherwise
 */
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return enterDefault(getSplitState);
}
 
Example #17
Source File: NodeVisitor.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for leaving a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return processed node, which will replace the original one, or the original node
 */
public Node leaveGetSplitState(final GetSplitState getSplitState) {
    return leaveDefault(getSplitState);
}
 
Example #18
Source File: NodeVisitor.java    From jdk8u_nashorn with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for leaving a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return processed node, which will replace the original one, or the original node
 */
public Node leaveGetSplitState(final GetSplitState getSplitState) {
    return leaveDefault(getSplitState);
}
 
Example #19
Source File: NodeVisitor.java    From jdk8u_nashorn with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for entering a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return true if traversal should continue and node children be traversed, false otherwise
 */
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return enterDefault(getSplitState);
}
 
Example #20
Source File: NodeVisitor.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for entering a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return true if traversal should continue and node children be traversed, false otherwise
 */
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return enterDefault(getSplitState);
}
 
Example #21
Source File: NodeVisitor.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for leaving a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return processed node, which will replace the original one, or the original node
 */
public Node leaveGetSplitState(final GetSplitState getSplitState) {
    return leaveDefault(getSplitState);
}
 
Example #22
Source File: NodeVisitor.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for entering a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return true if traversal should continue and node children be traversed, false otherwise
 */
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return enterDefault(getSplitState);
}
 
Example #23
Source File: NodeVisitor.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for leaving a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return processed node, which will replace the original one, or the original node
 */
public Node leaveGetSplitState(final GetSplitState getSplitState) {
    return leaveDefault(getSplitState);
}
 
Example #24
Source File: NodeVisitor.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for entering a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return true if traversal should continue and node children be traversed, false otherwise
 */
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return enterDefault(getSplitState);
}
 
Example #25
Source File: NodeVisitor.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for entering a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return true if traversal should continue and node children be traversed, false otherwise
 */
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return enterDefault(getSplitState);
}
 
Example #26
Source File: NodeVisitor.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for leaving a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return processed node, which will replace the original one, or the original node
 */
public Node leaveGetSplitState(final GetSplitState getSplitState) {
    return leaveDefault(getSplitState);
}
 
Example #27
Source File: NodeVisitor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for leaving a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return processed node, which will replace the original one, or the original node
 */
public Node leaveGetSplitState(final GetSplitState getSplitState) {
    return leaveDefault(getSplitState);
}
 
Example #28
Source File: NodeVisitor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Callback for entering a {@link GetSplitState}.
 *
 * @param  getSplitState the get split state expression
 * @return true if traversal should continue and node children be traversed, false otherwise
 */
public boolean enterGetSplitState(final GetSplitState getSplitState) {
    return enterDefault(getSplitState);
}