Java Code Examples for jdk.nashorn.internal.codegen.types.Type#narrowest()
The following examples show how to use
jdk.nashorn.internal.codegen.types.Type#narrowest() .
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: BinaryNode.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private Type getTypeUncached() { if(type == OPTIMISTIC_UNDECIDED_TYPE) { return decideType(lhs.getType(), rhs.getType()); } final Type widest = getWidestOperationType(); if(type == null) { return widest; } if (tokenType() == TokenType.ASSIGN_SHR || tokenType() == TokenType.SHR) { return type; } return Type.narrowest(widest, Type.widest(type, Type.widest(lhs.getType(), rhs.getType()))); }
Example 2
Source File: UnaryNode.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public Type getType() { final Type widest = getWidestOperationType(); if(type == null) { return widest; } return Type.narrowest(widest, Type.widest(type, expression.getType())); }
Example 3
Source File: BinaryNode.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private Type getTypeUncached() { if(type == OPTIMISTIC_UNDECIDED_TYPE) { return decideType(lhs.getType(), rhs.getType()); } final Type widest = getWidestOperationType(); if(type == null) { return widest; } return Type.narrowest(widest, Type.widest(type, Type.widest(lhs.getType(), rhs.getType()))); }
Example 4
Source File: UnaryNode.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public Type getType() { final Type widest = getWidestOperationType(); if(type == null) { return widest; } return Type.narrowest(widest, Type.widest(type, expression.getType())); }
Example 5
Source File: BinaryNode.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private Type getTypeUncached() { if(type == OPTIMISTIC_UNDECIDED_TYPE) { return decideType(lhs.getType(), rhs.getType()); } final Type widest = getWidestOperationType(); if(type == null) { return widest; } if (tokenType() == TokenType.ASSIGN_SHR || tokenType() == TokenType.SHR) { return type; } return Type.narrowest(widest, Type.widest(type, Type.widest(lhs.getType(), rhs.getType()))); }
Example 6
Source File: UnaryNode.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public Type getType() { final Type widest = getWidestOperationType(); if(type == null) { return widest; } return Type.narrowest(widest, Type.widest(type, expression.getType())); }
Example 7
Source File: BinaryNode.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private Type getTypeUncached() { if(type == OPTIMISTIC_UNDECIDED_TYPE) { return decideType(lhs.getType(), rhs.getType()); } final Type widest = getWidestOperationType(); if(type == null) { return widest; } if (tokenType() == TokenType.ASSIGN_SHR || tokenType() == TokenType.SHR) { return type; } return Type.narrowest(widest, Type.widest(type, Type.widest(lhs.getType(), rhs.getType()))); }
Example 8
Source File: UnaryNode.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public Type getType() { final Type widest = getWidestOperationType(); if(type == null) { return widest; } return Type.narrowest(widest, Type.widest(type, expression.getType())); }
Example 9
Source File: BinaryNode.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private Type getTypeUncached() { if(type == OPTIMISTIC_UNDECIDED_TYPE) { return decideType(lhs.getType(), rhs.getType()); } final Type widest = getWidestOperationType(); if(type == null) { return widest; } if (tokenType() == TokenType.ASSIGN_SHR || tokenType() == TokenType.SHR) { return type; } return Type.narrowest(widest, Type.widest(type, Type.widest(lhs.getType(), rhs.getType()))); }
Example 10
Source File: UnaryNode.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public Type getType() { final Type widest = getWidestOperationType(); if(type == null) { return widest; } return Type.narrowest(widest, Type.widest(type, expression.getType())); }
Example 11
Source File: BinaryNode.java From hottub with GNU General Public License v2.0 | 5 votes |
private Type getTypeUncached() { if(type == OPTIMISTIC_UNDECIDED_TYPE) { return decideType(lhs.getType(), rhs.getType()); } final Type widest = getWidestOperationType(); if(type == null) { return widest; } if (tokenType() == TokenType.ASSIGN_SHR || tokenType() == TokenType.SHR) { return type; } return Type.narrowest(widest, Type.widest(type, Type.widest(lhs.getType(), rhs.getType()))); }
Example 12
Source File: UnaryNode.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public Type getType() { final Type widest = getWidestOperationType(); if(type == null) { return widest; } return Type.narrowest(widest, Type.widest(type, expression.getType())); }
Example 13
Source File: BinaryNode.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
private Type getTypeUncached() { if(type == OPTIMISTIC_UNDECIDED_TYPE) { return decideType(lhs.getType(), rhs.getType()); } final Type widest = getWidestOperationType(); if(type == null) { return widest; } if (tokenType() == TokenType.ASSIGN_SHR || tokenType() == TokenType.SHR) { return type; } return Type.narrowest(widest, Type.widest(type, Type.widest(lhs.getType(), rhs.getType()))); }
Example 14
Source File: UnaryNode.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
@Override public Type getType() { final Type widest = getWidestOperationType(); if(type == null) { return widest; } return Type.narrowest(widest, Type.widest(type, expression.getType())); }