Java Code Examples for jdk.nashorn.internal.runtime.regexp.joni.constants.StackPopLevel#FREE
The following examples show how to use
jdk.nashorn.internal.runtime.regexp.joni.constants.StackPopLevel#FREE .
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: StackMachine.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected final StackEntry pop() { switch (regex.stackPopLevel) { case StackPopLevel.FREE: return popFree(); case StackPopLevel.MEM_START: return popMemStart(); default: return popDefault(); } }
Example 2
Source File: StackMachine.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected final StackEntry pop() { switch (regex.stackPopLevel) { case StackPopLevel.FREE: return popFree(); case StackPopLevel.MEM_START: return popMemStart(); default: return popDefault(); } }
Example 3
Source File: StackMachine.java From nashorn with GNU General Public License v2.0 | 5 votes |
protected final StackEntry pop() { switch (regex.stackPopLevel) { case StackPopLevel.FREE: return popFree(); case StackPopLevel.MEM_START: return popMemStart(); default: return popDefault(); } }
Example 4
Source File: StackMachine.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected final StackEntry pop() { switch (regex.stackPopLevel) { case StackPopLevel.FREE: return popFree(); case StackPopLevel.MEM_START: return popMemStart(); default: return popDefault(); } }
Example 5
Source File: StackMachine.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected final StackEntry pop() { switch (regex.stackPopLevel) { case StackPopLevel.FREE: return popFree(); case StackPopLevel.MEM_START: return popMemStart(); default: return popDefault(); } }
Example 6
Source File: StackMachine.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
protected final StackEntry pop() { switch (regex.stackPopLevel) { case StackPopLevel.FREE: return popFree(); case StackPopLevel.MEM_START: return popMemStart(); default: return popDefault(); } }
Example 7
Source File: StackMachine.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected final StackEntry pop() { switch (regex.stackPopLevel) { case StackPopLevel.FREE: return popFree(); case StackPopLevel.MEM_START: return popMemStart(); default: return popDefault(); } }
Example 8
Source File: StackMachine.java From hottub with GNU General Public License v2.0 | 5 votes |
protected final StackEntry pop() { switch (regex.stackPopLevel) { case StackPopLevel.FREE: return popFree(); case StackPopLevel.MEM_START: return popMemStart(); default: return popDefault(); } }
Example 9
Source File: StackMachine.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected final StackEntry pop() { switch (regex.stackPopLevel) { case StackPopLevel.FREE: return popFree(); case StackPopLevel.MEM_START: return popMemStart(); default: return popDefault(); } }
Example 10
Source File: StackMachine.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected final StackEntry pop() { switch (regex.stackPopLevel) { case StackPopLevel.FREE: return popFree(); case StackPopLevel.MEM_START: return popMemStart(); default: return popDefault(); } }
Example 11
Source File: Analyser.java From nashorn with GNU General Public License v2.0 | 4 votes |
protected final void compile() { if (Config.DEBUG) { Config.log.println(new String(chars, getBegin(), getEnd())); } reset(); regex.numMem = 0; regex.numRepeat = 0; regex.numNullCheck = 0; //regex.repeatRangeAlloc = 0; regex.repeatRangeLo = null; regex.repeatRangeHi = null; parse(); if (Config.DEBUG_PARSE_TREE_RAW && Config.DEBUG_PARSE_TREE) { Config.log.println("<RAW TREE>"); Config.log.println(root + "\n"); } root = setupTree(root, 0); if (Config.DEBUG_PARSE_TREE) { if (Config.DEBUG_PARSE_TREE_RAW) Config.log.println("<TREE>"); root.verifyTree(new HashSet<Node>(), env.reg.warnings); Config.log.println(root + "\n"); } regex.captureHistory = env.captureHistory; regex.btMemStart = env.btMemStart; regex.btMemEnd = env.btMemEnd; if (isFindCondition(regex.options)) { regex.btMemEnd = bsAll(); } else { regex.btMemEnd = env.btMemEnd; regex.btMemEnd |= regex.captureHistory; } regex.clearOptimizeInfo(); if (!Config.DONT_OPTIMIZE) setOptimizedInfoFromTree(root); env.memNodes = null; if (regex.numRepeat != 0 || regex.btMemEnd != 0) { regex.stackPopLevel = StackPopLevel.ALL; } else { if (regex.btMemStart != 0) { regex.stackPopLevel = StackPopLevel.MEM_START; } else { regex.stackPopLevel = StackPopLevel.FREE; } } if (Config.DEBUG_COMPILE) { Config.log.println("stack used: " + regex.stackNeeded); if (Config.USE_STRING_TEMPLATES) Config.log.print("templates: " + regex.templateNum + "\n"); Config.log.println(new ByteCodePrinter(regex).byteCodeListToString()); } // DEBUG_COMPILE }
Example 12
Source File: Analyser.java From jdk8u_nashorn with GNU General Public License v2.0 | 4 votes |
@SuppressWarnings("unused") protected final void compile() { if (Config.DEBUG) { Config.log.println(new String(chars, getBegin(), getEnd())); } reset(); regex.numMem = 0; regex.numRepeat = 0; regex.numNullCheck = 0; //regex.repeatRangeAlloc = 0; regex.repeatRangeLo = null; regex.repeatRangeHi = null; parse(); if (Config.DEBUG_PARSE_TREE_RAW && Config.DEBUG_PARSE_TREE) { Config.log.println("<RAW TREE>"); Config.log.println(root + "\n"); } root = setupTree(root, 0); if (Config.DEBUG_PARSE_TREE) { if (Config.DEBUG_PARSE_TREE_RAW) { Config.log.println("<TREE>"); } root.verifyTree(new HashSet<Node>(), env.reg.warnings); Config.log.println(root + "\n"); } regex.captureHistory = env.captureHistory; regex.btMemStart = env.btMemStart; regex.btMemEnd = env.btMemEnd; if (isFindCondition(regex.options)) { regex.btMemEnd = bsAll(); } else { regex.btMemEnd = env.btMemEnd; regex.btMemEnd |= regex.captureHistory; } regex.clearOptimizeInfo(); if (!Config.DONT_OPTIMIZE) { setOptimizedInfoFromTree(root); } env.memNodes = null; if (regex.numRepeat != 0 || regex.btMemEnd != 0) { regex.stackPopLevel = StackPopLevel.ALL; } else { if (regex.btMemStart != 0) { regex.stackPopLevel = StackPopLevel.MEM_START; } else { regex.stackPopLevel = StackPopLevel.FREE; } } if (Config.DEBUG_COMPILE) { Config.log.println("stack used: " + regex.stackNeeded); if (Config.USE_STRING_TEMPLATES) { Config.log.print("templates: " + regex.templateNum + "\n"); } Config.log.println(new ByteCodePrinter(regex).byteCodeListToString()); } // DEBUG_COMPILE }
Example 13
Source File: Analyser.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected final void compile() { if (Config.DEBUG) { Config.log.println(new String(chars, getBegin(), getEnd())); } reset(); regex.numMem = 0; regex.numRepeat = 0; regex.numNullCheck = 0; //regex.repeatRangeAlloc = 0; regex.repeatRangeLo = null; regex.repeatRangeHi = null; parse(); if (Config.DEBUG_PARSE_TREE_RAW && Config.DEBUG_PARSE_TREE) { Config.log.println("<RAW TREE>"); Config.log.println(root + "\n"); } root = setupTree(root, 0); if (Config.DEBUG_PARSE_TREE) { if (Config.DEBUG_PARSE_TREE_RAW) Config.log.println("<TREE>"); root.verifyTree(new HashSet<Node>(), env.reg.warnings); Config.log.println(root + "\n"); } regex.captureHistory = env.captureHistory; regex.btMemStart = env.btMemStart; regex.btMemEnd = env.btMemEnd; if (isFindCondition(regex.options)) { regex.btMemEnd = bsAll(); } else { regex.btMemEnd = env.btMemEnd; regex.btMemEnd |= regex.captureHistory; } regex.clearOptimizeInfo(); if (!Config.DONT_OPTIMIZE) setOptimizedInfoFromTree(root); env.memNodes = null; if (regex.numRepeat != 0 || regex.btMemEnd != 0) { regex.stackPopLevel = StackPopLevel.ALL; } else { if (regex.btMemStart != 0) { regex.stackPopLevel = StackPopLevel.MEM_START; } else { regex.stackPopLevel = StackPopLevel.FREE; } } if (Config.DEBUG_COMPILE) { Config.log.println("stack used: " + regex.stackNeeded); if (Config.USE_STRING_TEMPLATES) Config.log.print("templates: " + regex.templateNum + "\n"); Config.log.println(new ByteCodePrinter(regex).byteCodeListToString()); } // DEBUG_COMPILE }
Example 14
Source File: Analyser.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected final void compile() { if (Config.DEBUG) { Config.log.println(new String(chars, getBegin(), getEnd())); } reset(); regex.numMem = 0; regex.numRepeat = 0; regex.numNullCheck = 0; //regex.repeatRangeAlloc = 0; regex.repeatRangeLo = null; regex.repeatRangeHi = null; parse(); if (Config.DEBUG_PARSE_TREE_RAW && Config.DEBUG_PARSE_TREE) { Config.log.println("<RAW TREE>"); Config.log.println(root + "\n"); } root = setupTree(root, 0); if (Config.DEBUG_PARSE_TREE) { if (Config.DEBUG_PARSE_TREE_RAW) Config.log.println("<TREE>"); root.verifyTree(new HashSet<Node>(), env.reg.warnings); Config.log.println(root + "\n"); } regex.captureHistory = env.captureHistory; regex.btMemStart = env.btMemStart; regex.btMemEnd = env.btMemEnd; if (isFindCondition(regex.options)) { regex.btMemEnd = bsAll(); } else { regex.btMemEnd = env.btMemEnd; regex.btMemEnd |= regex.captureHistory; } regex.clearOptimizeInfo(); if (!Config.DONT_OPTIMIZE) setOptimizedInfoFromTree(root); env.memNodes = null; if (regex.numRepeat != 0 || regex.btMemEnd != 0) { regex.stackPopLevel = StackPopLevel.ALL; } else { if (regex.btMemStart != 0) { regex.stackPopLevel = StackPopLevel.MEM_START; } else { regex.stackPopLevel = StackPopLevel.FREE; } } if (Config.DEBUG_COMPILE) { Config.log.println("stack used: " + regex.stackNeeded); if (Config.USE_STRING_TEMPLATES) Config.log.print("templates: " + regex.templateNum + "\n"); Config.log.println(new ByteCodePrinter(regex).byteCodeListToString()); } // DEBUG_COMPILE }
Example 15
Source File: Analyser.java From hottub with GNU General Public License v2.0 | 4 votes |
@SuppressWarnings("unused") protected final void compile() { if (Config.DEBUG) { Config.log.println(new String(chars, getBegin(), getEnd())); } reset(); regex.numMem = 0; regex.numRepeat = 0; regex.numNullCheck = 0; //regex.repeatRangeAlloc = 0; regex.repeatRangeLo = null; regex.repeatRangeHi = null; parse(); if (Config.DEBUG_PARSE_TREE_RAW && Config.DEBUG_PARSE_TREE) { Config.log.println("<RAW TREE>"); Config.log.println(root + "\n"); } root = setupTree(root, 0); if (Config.DEBUG_PARSE_TREE) { if (Config.DEBUG_PARSE_TREE_RAW) { Config.log.println("<TREE>"); } root.verifyTree(new HashSet<Node>(), env.reg.warnings); Config.log.println(root + "\n"); } regex.captureHistory = env.captureHistory; regex.btMemStart = env.btMemStart; regex.btMemEnd = env.btMemEnd; if (isFindCondition(regex.options)) { regex.btMemEnd = bsAll(); } else { regex.btMemEnd = env.btMemEnd; regex.btMemEnd |= regex.captureHistory; } regex.clearOptimizeInfo(); if (!Config.DONT_OPTIMIZE) { setOptimizedInfoFromTree(root); } env.memNodes = null; if (regex.numRepeat != 0 || regex.btMemEnd != 0) { regex.stackPopLevel = StackPopLevel.ALL; } else { if (regex.btMemStart != 0) { regex.stackPopLevel = StackPopLevel.MEM_START; } else { regex.stackPopLevel = StackPopLevel.FREE; } } if (Config.DEBUG_COMPILE) { Config.log.println("stack used: " + regex.stackNeeded); if (Config.USE_STRING_TEMPLATES) { Config.log.print("templates: " + regex.templateNum + "\n"); } Config.log.println(new ByteCodePrinter(regex).byteCodeListToString()); } // DEBUG_COMPILE }
Example 16
Source File: Analyser.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@SuppressWarnings("unused") protected final void compile() { if (Config.DEBUG) { Config.log.println(new String(chars, getBegin(), getEnd())); } reset(); regex.numMem = 0; regex.numRepeat = 0; regex.numNullCheck = 0; //regex.repeatRangeAlloc = 0; regex.repeatRangeLo = null; regex.repeatRangeHi = null; parse(); if (Config.DEBUG_PARSE_TREE_RAW && Config.DEBUG_PARSE_TREE) { Config.log.println("<RAW TREE>"); Config.log.println(root + "\n"); } root = setupTree(root, 0); if (Config.DEBUG_PARSE_TREE) { if (Config.DEBUG_PARSE_TREE_RAW) { Config.log.println("<TREE>"); } root.verifyTree(new HashSet<Node>(), env.reg.warnings); Config.log.println(root + "\n"); } regex.captureHistory = env.captureHistory; regex.btMemStart = env.btMemStart; regex.btMemEnd = env.btMemEnd; if (isFindCondition(regex.options)) { regex.btMemEnd = bsAll(); } else { regex.btMemEnd = env.btMemEnd; regex.btMemEnd |= regex.captureHistory; } regex.clearOptimizeInfo(); if (!Config.DONT_OPTIMIZE) { setOptimizedInfoFromTree(root); } env.memNodes = null; if (regex.numRepeat != 0 || regex.btMemEnd != 0) { regex.stackPopLevel = StackPopLevel.ALL; } else { if (regex.btMemStart != 0) { regex.stackPopLevel = StackPopLevel.MEM_START; } else { regex.stackPopLevel = StackPopLevel.FREE; } } if (Config.DEBUG_COMPILE) { Config.log.println("stack used: " + regex.stackNeeded); if (Config.USE_STRING_TEMPLATES) { Config.log.print("templates: " + regex.templateNum + "\n"); } Config.log.println(new ByteCodePrinter(regex).byteCodeListToString()); } // DEBUG_COMPILE }
Example 17
Source File: Analyser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@SuppressWarnings("unused") protected final void compile() { if (Config.DEBUG) { Config.log.println(new String(chars, getBegin(), getEnd())); } reset(); regex.numMem = 0; regex.numRepeat = 0; regex.numNullCheck = 0; //regex.repeatRangeAlloc = 0; regex.repeatRangeLo = null; regex.repeatRangeHi = null; parse(); if (Config.DEBUG_PARSE_TREE_RAW && Config.DEBUG_PARSE_TREE) { Config.log.println("<RAW TREE>"); Config.log.println(root + "\n"); } root = setupTree(root, 0); if (Config.DEBUG_PARSE_TREE) { if (Config.DEBUG_PARSE_TREE_RAW) { Config.log.println("<TREE>"); } root.verifyTree(new HashSet<Node>(), env.reg.warnings); Config.log.println(root + "\n"); } regex.captureHistory = env.captureHistory; regex.btMemStart = env.btMemStart; regex.btMemEnd = env.btMemEnd; if (isFindCondition(regex.options)) { regex.btMemEnd = bsAll(); } else { regex.btMemEnd = env.btMemEnd; regex.btMemEnd |= regex.captureHistory; } regex.clearOptimizeInfo(); if (!Config.DONT_OPTIMIZE) { setOptimizedInfoFromTree(root); } env.memNodes = null; if (regex.numRepeat != 0 || regex.btMemEnd != 0) { regex.stackPopLevel = StackPopLevel.ALL; } else { if (regex.btMemStart != 0) { regex.stackPopLevel = StackPopLevel.MEM_START; } else { regex.stackPopLevel = StackPopLevel.FREE; } } if (Config.DEBUG_COMPILE) { Config.log.println("stack used: " + regex.stackNeeded); if (Config.USE_STRING_TEMPLATES) { Config.log.print("templates: " + regex.templateNum + "\n"); } Config.log.println(new ByteCodePrinter(regex).byteCodeListToString()); } // DEBUG_COMPILE }
Example 18
Source File: Analyser.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@SuppressWarnings("unused") protected final void compile() { if (Config.DEBUG) { Config.log.println(new String(chars, getBegin(), getEnd())); } reset(); regex.numMem = 0; regex.numRepeat = 0; regex.numNullCheck = 0; //regex.repeatRangeAlloc = 0; regex.repeatRangeLo = null; regex.repeatRangeHi = null; parse(); if (Config.DEBUG_PARSE_TREE_RAW && Config.DEBUG_PARSE_TREE) { Config.log.println("<RAW TREE>"); Config.log.println(root + "\n"); } root = setupTree(root, 0); if (Config.DEBUG_PARSE_TREE) { if (Config.DEBUG_PARSE_TREE_RAW) { Config.log.println("<TREE>"); } root.verifyTree(new HashSet<Node>(), env.reg.warnings); Config.log.println(root + "\n"); } regex.captureHistory = env.captureHistory; regex.btMemStart = env.btMemStart; regex.btMemEnd = env.btMemEnd; if (isFindCondition(regex.options)) { regex.btMemEnd = bsAll(); } else { regex.btMemEnd = env.btMemEnd; regex.btMemEnd |= regex.captureHistory; } regex.clearOptimizeInfo(); if (!Config.DONT_OPTIMIZE) { setOptimizedInfoFromTree(root); } env.memNodes = null; if (regex.numRepeat != 0 || regex.btMemEnd != 0) { regex.stackPopLevel = StackPopLevel.ALL; } else { if (regex.btMemStart != 0) { regex.stackPopLevel = StackPopLevel.MEM_START; } else { regex.stackPopLevel = StackPopLevel.FREE; } } if (Config.DEBUG_COMPILE) { Config.log.println("stack used: " + regex.stackNeeded); if (Config.USE_STRING_TEMPLATES) { Config.log.print("templates: " + regex.templateNum + "\n"); } Config.log.println(new ByteCodePrinter(regex).byteCodeListToString()); } // DEBUG_COMPILE }
Example 19
Source File: Analyser.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@SuppressWarnings("unused") protected final void compile() { if (Config.DEBUG) { Config.log.println(new String(chars, getBegin(), getEnd())); } reset(); regex.numMem = 0; regex.numRepeat = 0; regex.numNullCheck = 0; //regex.repeatRangeAlloc = 0; regex.repeatRangeLo = null; regex.repeatRangeHi = null; parse(); if (Config.DEBUG_PARSE_TREE_RAW && Config.DEBUG_PARSE_TREE) { Config.log.println("<RAW TREE>"); Config.log.println(root + "\n"); } root = setupTree(root, 0); if (Config.DEBUG_PARSE_TREE) { if (Config.DEBUG_PARSE_TREE_RAW) { Config.log.println("<TREE>"); } root.verifyTree(new HashSet<Node>(), env.reg.warnings); Config.log.println(root + "\n"); } regex.captureHistory = env.captureHistory; regex.btMemStart = env.btMemStart; regex.btMemEnd = env.btMemEnd; if (isFindCondition(regex.options)) { regex.btMemEnd = bsAll(); } else { regex.btMemEnd = env.btMemEnd; regex.btMemEnd |= regex.captureHistory; } regex.clearOptimizeInfo(); if (!Config.DONT_OPTIMIZE) { setOptimizedInfoFromTree(root); } env.memNodes = null; if (regex.numRepeat != 0 || regex.btMemEnd != 0) { regex.stackPopLevel = StackPopLevel.ALL; } else { if (regex.btMemStart != 0) { regex.stackPopLevel = StackPopLevel.MEM_START; } else { regex.stackPopLevel = StackPopLevel.FREE; } } if (Config.DEBUG_COMPILE) { Config.log.println("stack used: " + regex.stackNeeded); if (Config.USE_STRING_TEMPLATES) { Config.log.print("templates: " + regex.templateNum + "\n"); } Config.log.println(new ByteCodePrinter(regex).byteCodeListToString()); } // DEBUG_COMPILE }
Example 20
Source File: Analyser.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@SuppressWarnings("unused") protected final void compile() { if (Config.DEBUG) { Config.log.println(new String(chars, getBegin(), getEnd())); } reset(); regex.numMem = 0; regex.numRepeat = 0; regex.numNullCheck = 0; //regex.repeatRangeAlloc = 0; regex.repeatRangeLo = null; regex.repeatRangeHi = null; parse(); if (Config.DEBUG_PARSE_TREE_RAW && Config.DEBUG_PARSE_TREE) { Config.log.println("<RAW TREE>"); Config.log.println(root + "\n"); } root = setupTree(root, 0); if (Config.DEBUG_PARSE_TREE) { if (Config.DEBUG_PARSE_TREE_RAW) { Config.log.println("<TREE>"); } root.verifyTree(new HashSet<Node>(), env.reg.warnings); Config.log.println(root + "\n"); } regex.captureHistory = env.captureHistory; regex.btMemStart = env.btMemStart; regex.btMemEnd = env.btMemEnd; if (isFindCondition(regex.options)) { regex.btMemEnd = bsAll(); } else { regex.btMemEnd = env.btMemEnd; regex.btMemEnd |= regex.captureHistory; } regex.clearOptimizeInfo(); if (!Config.DONT_OPTIMIZE) { setOptimizedInfoFromTree(root); } env.memNodes = null; if (regex.numRepeat != 0 || regex.btMemEnd != 0) { regex.stackPopLevel = StackPopLevel.ALL; } else { if (regex.btMemStart != 0) { regex.stackPopLevel = StackPopLevel.MEM_START; } else { regex.stackPopLevel = StackPopLevel.FREE; } } if (Config.DEBUG_COMPILE) { Config.log.println("stack used: " + regex.stackNeeded); if (Config.USE_STRING_TEMPLATES) { Config.log.print("templates: " + regex.templateNum + "\n"); } Config.log.println(new ByteCodePrinter(regex).byteCodeListToString()); } // DEBUG_COMPILE }