jdk.nashorn.internal.runtime.regexp.joni.exception.InternalException Java Examples
The following examples show how to use
jdk.nashorn.internal.runtime.regexp.joni.exception.InternalException.
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: ByteCodeMachine.java From nashorn with GNU General Public License v2.0 | 6 votes |
private void nullCheckFound() { // null_check_found: /* empty loop founded, skip next instruction */ switch(code[ip++]) { case OPCode.JUMP: case OPCode.PUSH: ip++; // p += SIZE_RELADDR; break; case OPCode.REPEAT_INC: case OPCode.REPEAT_INC_NG: case OPCode.REPEAT_INC_SG: case OPCode.REPEAT_INC_NG_SG: ip++; // p += SIZE_MEMNUM; break; default: throw new InternalException(ErrorMessages.ERR_UNEXPECTED_BYTECODE); } // switch }
Example #2
Source File: ByteCodeMachine.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private void nullCheckFound() { // null_check_found: /* empty loop founded, skip next instruction */ switch(code[ip++]) { case OPCode.JUMP: case OPCode.PUSH: ip++; // p += SIZE_RELADDR; break; case OPCode.REPEAT_INC: case OPCode.REPEAT_INC_NG: case OPCode.REPEAT_INC_SG: case OPCode.REPEAT_INC_NG_SG: ip++; // p += SIZE_MEMNUM; break; default: throw new InternalException(ErrorMessages.ERR_UNEXPECTED_BYTECODE); } // switch }
Example #3
Source File: ByteCodeMachine.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private void nullCheckFound() { // null_check_found: /* empty loop founded, skip next instruction */ switch(code[ip++]) { case OPCode.JUMP: case OPCode.PUSH: ip++; // p += SIZE_RELADDR; break; case OPCode.REPEAT_INC: case OPCode.REPEAT_INC_NG: case OPCode.REPEAT_INC_SG: case OPCode.REPEAT_INC_NG_SG: ip++; // p += SIZE_MEMNUM; break; default: throw new InternalException(ErrorMessages.ERR_UNEXPECTED_BYTECODE); } // switch }
Example #4
Source File: ByteCodeMachine.java From hottub with GNU General Public License v2.0 | 6 votes |
private void nullCheckFound() { // null_check_found: /* empty loop founded, skip next instruction */ switch(code[ip++]) { case OPCode.JUMP: case OPCode.PUSH: ip++; // p += SIZE_RELADDR; break; case OPCode.REPEAT_INC: case OPCode.REPEAT_INC_NG: case OPCode.REPEAT_INC_SG: case OPCode.REPEAT_INC_NG_SG: ip++; // p += SIZE_MEMNUM; break; default: throw new InternalException(ErrorMessages.ERR_UNEXPECTED_BYTECODE); } // switch }
Example #5
Source File: ByteCodeMachine.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private void nullCheckFound() { // null_check_found: /* empty loop founded, skip next instruction */ switch(code[ip++]) { case OPCode.JUMP: case OPCode.PUSH: ip++; // p += SIZE_RELADDR; break; case OPCode.REPEAT_INC: case OPCode.REPEAT_INC_NG: case OPCode.REPEAT_INC_SG: case OPCode.REPEAT_INC_NG_SG: ip++; // p += SIZE_MEMNUM; break; default: throw new InternalException(ErrorMessages.ERR_UNEXPECTED_BYTECODE); } // switch }
Example #6
Source File: ByteCodeMachine.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private void nullCheckFound() { // null_check_found: /* empty loop founded, skip next instruction */ switch(code[ip++]) { case OPCode.JUMP: case OPCode.PUSH: ip++; // p += SIZE_RELADDR; break; case OPCode.REPEAT_INC: case OPCode.REPEAT_INC_NG: case OPCode.REPEAT_INC_SG: case OPCode.REPEAT_INC_NG_SG: ip++; // p += SIZE_MEMNUM; break; default: throw new InternalException(ErrorMessages.ERR_UNEXPECTED_BYTECODE); } // switch }
Example #7
Source File: ByteCodeMachine.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private void nullCheckFound() { // null_check_found: /* empty loop founded, skip next instruction */ switch(code[ip++]) { case OPCode.JUMP: case OPCode.PUSH: ip++; // p += SIZE_RELADDR; break; case OPCode.REPEAT_INC: case OPCode.REPEAT_INC_NG: case OPCode.REPEAT_INC_SG: case OPCode.REPEAT_INC_NG_SG: ip++; // p += SIZE_MEMNUM; break; default: throw new InternalException(ErrorMessages.ERR_UNEXPECTED_BYTECODE); } // switch }
Example #8
Source File: ByteCodeMachine.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private void nullCheckFound() { // null_check_found: /* empty loop founded, skip next instruction */ switch(code[ip++]) { case OPCode.JUMP: case OPCode.PUSH: ip++; // p += SIZE_RELADDR; break; case OPCode.REPEAT_INC: case OPCode.REPEAT_INC_NG: case OPCode.REPEAT_INC_SG: case OPCode.REPEAT_INC_NG_SG: ip++; // p += SIZE_MEMNUM; break; default: throw new InternalException(ErrorMessages.ERR_UNEXPECTED_BYTECODE); } // switch }
Example #9
Source File: ByteCodeMachine.java From jdk8u_nashorn with GNU General Public License v2.0 | 6 votes |
private void nullCheckFound() { // null_check_found: /* empty loop founded, skip next instruction */ switch(code[ip++]) { case OPCode.JUMP: case OPCode.PUSH: ip++; // p += SIZE_RELADDR; break; case OPCode.REPEAT_INC: case OPCode.REPEAT_INC_NG: case OPCode.REPEAT_INC_SG: case OPCode.REPEAT_INC_NG_SG: ip++; // p += SIZE_MEMNUM; break; default: throw new InternalException(ErrorMessages.ERR_UNEXPECTED_BYTECODE); } // switch }
Example #10
Source File: ByteCodeMachine.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private void nullCheckFound() { // null_check_found: /* empty loop founded, skip next instruction */ switch(code[ip++]) { case OPCode.JUMP: case OPCode.PUSH: ip++; // p += SIZE_RELADDR; break; case OPCode.REPEAT_INC: case OPCode.REPEAT_INC_NG: case OPCode.REPEAT_INC_SG: case OPCode.REPEAT_INC_NG_SG: ip++; // p += SIZE_MEMNUM; break; default: throw new InternalException(ErrorMessages.ERR_UNEXPECTED_BYTECODE); } // switch }
Example #11
Source File: ScanEnvironment.java From nashorn with GNU General Public License v2.0 | 5 votes |
public void setMemNode(int num, Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #12
Source File: ConsAltNode.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #13
Source File: ScanEnvironment.java From hottub with GNU General Public License v2.0 | 5 votes |
public void setMemNode(final int num, final Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #14
Source File: ScanEnvironment.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public int addMemEntry() { if (numMem >= Config.MAX_CAPTURE_GROUP_NUM) { throw new InternalException(ErrorMessages.ERR_TOO_MANY_CAPTURE_GROUPS); } if (numMem++ == 0) { memNodes = new Node[SCANENV_MEMNODES_SIZE]; } else if (numMem >= memNodes.length) { final Node[]tmp = new Node[memNodes.length << 1]; System.arraycopy(memNodes, 0, tmp, 0, memNodes.length); memNodes = tmp; } return numMem; }
Example #15
Source File: Parser.java From nashorn with GNU General Public License v2.0 | 5 votes |
private void parseSubExpError(TokenType term) { if (term == TokenType.SUBEXP_CLOSE) { throw new SyntaxException(ERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS); } else { throw new InternalException(ERR_PARSER_BUG); } }
Example #16
Source File: ConsAltNode.java From nashorn with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #17
Source File: ScanEnvironment.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void setMemNode(int num, Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #18
Source File: ConsAltNode.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #19
Source File: Parser.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void parseSubExpError(TokenType term) { if (term == TokenType.SUBEXP_CLOSE) { throw new SyntaxException(ERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS); } else { throw new InternalException(ERR_PARSER_BUG); } }
Example #20
Source File: ScanEnvironment.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
public void setMemNode(final int num, final Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #21
Source File: ScanEnvironment.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void setMemNode(int num, Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #22
Source File: ConsAltNode.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #23
Source File: Parser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void parseSubExpError(TokenType term) { if (term == TokenType.SUBEXP_CLOSE) { throw new SyntaxException(ERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS); } else { throw new InternalException(ERR_PARSER_BUG); } }
Example #24
Source File: ConsAltNode.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #25
Source File: ScanEnvironment.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
public int addMemEntry() { if (numMem >= Config.MAX_CAPTURE_GROUP_NUM) { throw new InternalException(ErrorMessages.ERR_TOO_MANY_CAPTURE_GROUPS); } if (numMem++ == 0) { memNodes = new Node[SCANENV_MEMNODES_SIZE]; } else if (numMem >= memNodes.length) { final Node[]tmp = new Node[memNodes.length << 1]; System.arraycopy(memNodes, 0, tmp, 0, memNodes.length); memNodes = tmp; } return numMem; }
Example #26
Source File: ConsAltNode.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #27
Source File: ScanEnvironment.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void setMemNode(final int num, final Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #28
Source File: ConsAltNode.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #29
Source File: ScanEnvironment.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void setMemNode(final int num, final Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example #30
Source File: ConsAltNode.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }