Java Code Examples for jdk.nashorn.internal.runtime.regexp.joni.constants.OPCode#MEMORY_END_REC

The following examples show how to use jdk.nashorn.internal.runtime.regexp.joni.constants.OPCode#MEMORY_END_REC . 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: ArrayCompiler.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private void addOpcode(final int opcode) {
    addInt(opcode);

    switch(opcode) {
    case OPCode.ANYCHAR_STAR:
    case OPCode.ANYCHAR_ML_STAR:
    case OPCode.ANYCHAR_STAR_PEEK_NEXT:
    case OPCode.ANYCHAR_ML_STAR_PEEK_NEXT:
    case OPCode.STATE_CHECK_ANYCHAR_STAR:
    case OPCode.STATE_CHECK_ANYCHAR_ML_STAR:
    case OPCode.MEMORY_START_PUSH:
    case OPCode.MEMORY_END_PUSH:
    case OPCode.MEMORY_END_PUSH_REC:
    case OPCode.MEMORY_END_REC:
    case OPCode.NULL_CHECK_START:
    case OPCode.NULL_CHECK_END_MEMST_PUSH:
    case OPCode.PUSH:
    case OPCode.STATE_CHECK_PUSH:
    case OPCode.STATE_CHECK_PUSH_OR_JUMP:
    case OPCode.STATE_CHECK:
    case OPCode.PUSH_OR_JUMP_EXACT1:
    case OPCode.PUSH_IF_PEEK_NEXT:
    case OPCode.REPEAT:
    case OPCode.REPEAT_NG:
    case OPCode.REPEAT_INC_SG:
    case OPCode.REPEAT_INC_NG:
    case OPCode.REPEAT_INC_NG_SG:
    case OPCode.PUSH_POS:
    case OPCode.PUSH_POS_NOT:
    case OPCode.PUSH_STOP_BT:
    case OPCode.PUSH_LOOK_BEHIND_NOT:
    case OPCode.CALL:
    case OPCode.RETURN: // it will appear only with CALL though
        regex.stackNeeded = true;
        break;
    default:
        break;
    }
}
 
Example 2
Source File: ArrayCompiler.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private void addOpcode(final int opcode) {
    addInt(opcode);

    switch(opcode) {
    case OPCode.ANYCHAR_STAR:
    case OPCode.ANYCHAR_ML_STAR:
    case OPCode.ANYCHAR_STAR_PEEK_NEXT:
    case OPCode.ANYCHAR_ML_STAR_PEEK_NEXT:
    case OPCode.STATE_CHECK_ANYCHAR_STAR:
    case OPCode.STATE_CHECK_ANYCHAR_ML_STAR:
    case OPCode.MEMORY_START_PUSH:
    case OPCode.MEMORY_END_PUSH:
    case OPCode.MEMORY_END_PUSH_REC:
    case OPCode.MEMORY_END_REC:
    case OPCode.NULL_CHECK_START:
    case OPCode.NULL_CHECK_END_MEMST_PUSH:
    case OPCode.PUSH:
    case OPCode.STATE_CHECK_PUSH:
    case OPCode.STATE_CHECK_PUSH_OR_JUMP:
    case OPCode.STATE_CHECK:
    case OPCode.PUSH_OR_JUMP_EXACT1:
    case OPCode.PUSH_IF_PEEK_NEXT:
    case OPCode.REPEAT:
    case OPCode.REPEAT_NG:
    case OPCode.REPEAT_INC_SG:
    case OPCode.REPEAT_INC_NG:
    case OPCode.REPEAT_INC_NG_SG:
    case OPCode.PUSH_POS:
    case OPCode.PUSH_POS_NOT:
    case OPCode.PUSH_STOP_BT:
    case OPCode.PUSH_LOOK_BEHIND_NOT:
    case OPCode.CALL:
    case OPCode.RETURN: // it will appear only with CALL though
        regex.stackNeeded = true;
        break;
    default:
        break;
    }
}
 
Example 3
Source File: ArrayCompiler.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private void addOpcode(final int opcode) {
    addInt(opcode);

    switch(opcode) {
    case OPCode.ANYCHAR_STAR:
    case OPCode.ANYCHAR_ML_STAR:
    case OPCode.ANYCHAR_STAR_PEEK_NEXT:
    case OPCode.ANYCHAR_ML_STAR_PEEK_NEXT:
    case OPCode.STATE_CHECK_ANYCHAR_STAR:
    case OPCode.STATE_CHECK_ANYCHAR_ML_STAR:
    case OPCode.MEMORY_START_PUSH:
    case OPCode.MEMORY_END_PUSH:
    case OPCode.MEMORY_END_PUSH_REC:
    case OPCode.MEMORY_END_REC:
    case OPCode.NULL_CHECK_START:
    case OPCode.NULL_CHECK_END_MEMST_PUSH:
    case OPCode.PUSH:
    case OPCode.STATE_CHECK_PUSH:
    case OPCode.STATE_CHECK_PUSH_OR_JUMP:
    case OPCode.STATE_CHECK:
    case OPCode.PUSH_OR_JUMP_EXACT1:
    case OPCode.PUSH_IF_PEEK_NEXT:
    case OPCode.REPEAT:
    case OPCode.REPEAT_NG:
    case OPCode.REPEAT_INC_SG:
    case OPCode.REPEAT_INC_NG:
    case OPCode.REPEAT_INC_NG_SG:
    case OPCode.PUSH_POS:
    case OPCode.PUSH_POS_NOT:
    case OPCode.PUSH_STOP_BT:
    case OPCode.PUSH_LOOK_BEHIND_NOT:
    case OPCode.CALL:
    case OPCode.RETURN: // it will appear only with CALL though
        regex.stackNeeded = true;
        break;
    default:
        break;
    }
}
 
Example 4
Source File: ArrayCompiler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void addOpcode(final int opcode) {
    addInt(opcode);

    switch(opcode) {
    case OPCode.ANYCHAR_STAR:
    case OPCode.ANYCHAR_ML_STAR:
    case OPCode.ANYCHAR_STAR_PEEK_NEXT:
    case OPCode.ANYCHAR_ML_STAR_PEEK_NEXT:
    case OPCode.STATE_CHECK_ANYCHAR_STAR:
    case OPCode.STATE_CHECK_ANYCHAR_ML_STAR:
    case OPCode.MEMORY_START_PUSH:
    case OPCode.MEMORY_END_PUSH:
    case OPCode.MEMORY_END_PUSH_REC:
    case OPCode.MEMORY_END_REC:
    case OPCode.NULL_CHECK_START:
    case OPCode.NULL_CHECK_END_MEMST_PUSH:
    case OPCode.PUSH:
    case OPCode.STATE_CHECK_PUSH:
    case OPCode.STATE_CHECK_PUSH_OR_JUMP:
    case OPCode.STATE_CHECK:
    case OPCode.PUSH_OR_JUMP_EXACT1:
    case OPCode.PUSH_IF_PEEK_NEXT:
    case OPCode.REPEAT:
    case OPCode.REPEAT_NG:
    case OPCode.REPEAT_INC_SG:
    case OPCode.REPEAT_INC_NG:
    case OPCode.REPEAT_INC_NG_SG:
    case OPCode.PUSH_POS:
    case OPCode.PUSH_POS_NOT:
    case OPCode.PUSH_STOP_BT:
    case OPCode.PUSH_LOOK_BEHIND_NOT:
    case OPCode.CALL:
    case OPCode.RETURN: // it will appear only with CALL though
        regex.stackNeeded = true;
        break;
    default:
        break;
    }
}
 
Example 5
Source File: ArrayCompiler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void addOpcode(final int opcode) {
    addInt(opcode);

    switch(opcode) {
    case OPCode.ANYCHAR_STAR:
    case OPCode.ANYCHAR_ML_STAR:
    case OPCode.ANYCHAR_STAR_PEEK_NEXT:
    case OPCode.ANYCHAR_ML_STAR_PEEK_NEXT:
    case OPCode.STATE_CHECK_ANYCHAR_STAR:
    case OPCode.STATE_CHECK_ANYCHAR_ML_STAR:
    case OPCode.MEMORY_START_PUSH:
    case OPCode.MEMORY_END_PUSH:
    case OPCode.MEMORY_END_PUSH_REC:
    case OPCode.MEMORY_END_REC:
    case OPCode.NULL_CHECK_START:
    case OPCode.NULL_CHECK_END_MEMST_PUSH:
    case OPCode.PUSH:
    case OPCode.STATE_CHECK_PUSH:
    case OPCode.STATE_CHECK_PUSH_OR_JUMP:
    case OPCode.STATE_CHECK:
    case OPCode.PUSH_OR_JUMP_EXACT1:
    case OPCode.PUSH_IF_PEEK_NEXT:
    case OPCode.REPEAT:
    case OPCode.REPEAT_NG:
    case OPCode.REPEAT_INC_SG:
    case OPCode.REPEAT_INC_NG:
    case OPCode.REPEAT_INC_NG_SG:
    case OPCode.PUSH_POS:
    case OPCode.PUSH_POS_NOT:
    case OPCode.PUSH_STOP_BT:
    case OPCode.PUSH_LOOK_BEHIND_NOT:
    case OPCode.CALL:
    case OPCode.RETURN: // it will appear only with CALL though
        regex.stackNeeded = true;
        break;
    default:
        break;
    }
}
 
Example 6
Source File: ArrayCompiler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void addOpcode(final int opcode) {
    addInt(opcode);

    switch(opcode) {
    case OPCode.ANYCHAR_STAR:
    case OPCode.ANYCHAR_ML_STAR:
    case OPCode.ANYCHAR_STAR_PEEK_NEXT:
    case OPCode.ANYCHAR_ML_STAR_PEEK_NEXT:
    case OPCode.STATE_CHECK_ANYCHAR_STAR:
    case OPCode.STATE_CHECK_ANYCHAR_ML_STAR:
    case OPCode.MEMORY_START_PUSH:
    case OPCode.MEMORY_END_PUSH:
    case OPCode.MEMORY_END_PUSH_REC:
    case OPCode.MEMORY_END_REC:
    case OPCode.NULL_CHECK_START:
    case OPCode.NULL_CHECK_END_MEMST_PUSH:
    case OPCode.PUSH:
    case OPCode.STATE_CHECK_PUSH:
    case OPCode.STATE_CHECK_PUSH_OR_JUMP:
    case OPCode.STATE_CHECK:
    case OPCode.PUSH_OR_JUMP_EXACT1:
    case OPCode.PUSH_IF_PEEK_NEXT:
    case OPCode.REPEAT:
    case OPCode.REPEAT_NG:
    case OPCode.REPEAT_INC_SG:
    case OPCode.REPEAT_INC_NG:
    case OPCode.REPEAT_INC_NG_SG:
    case OPCode.PUSH_POS:
    case OPCode.PUSH_POS_NOT:
    case OPCode.PUSH_STOP_BT:
    case OPCode.PUSH_LOOK_BEHIND_NOT:
    case OPCode.CALL:
    case OPCode.RETURN: // it will appear only with CALL though
        regex.stackNeeded = true;
        break;
    default:
        break;
    }
}
 
Example 7
Source File: ArrayCompiler.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private void addOpcode(int opcode) {
    addInt(opcode);

    switch(opcode) {
    case OPCode.ANYCHAR_STAR:
    case OPCode.ANYCHAR_ML_STAR:
    case OPCode.ANYCHAR_STAR_PEEK_NEXT:
    case OPCode.ANYCHAR_ML_STAR_PEEK_NEXT:
    case OPCode.STATE_CHECK_ANYCHAR_STAR:
    case OPCode.STATE_CHECK_ANYCHAR_ML_STAR:
    case OPCode.MEMORY_START_PUSH:
    case OPCode.MEMORY_END_PUSH:
    case OPCode.MEMORY_END_PUSH_REC:
    case OPCode.MEMORY_END_REC:
    case OPCode.NULL_CHECK_START:
    case OPCode.NULL_CHECK_END_MEMST_PUSH:
    case OPCode.PUSH:
    case OPCode.STATE_CHECK_PUSH:
    case OPCode.STATE_CHECK_PUSH_OR_JUMP:
    case OPCode.STATE_CHECK:
    case OPCode.PUSH_OR_JUMP_EXACT1:
    case OPCode.PUSH_IF_PEEK_NEXT:
    case OPCode.REPEAT:
    case OPCode.REPEAT_NG:
    case OPCode.REPEAT_INC_SG:
    case OPCode.REPEAT_INC_NG:
    case OPCode.REPEAT_INC_NG_SG:
    case OPCode.PUSH_POS:
    case OPCode.PUSH_POS_NOT:
    case OPCode.PUSH_STOP_BT:
    case OPCode.PUSH_LOOK_BEHIND_NOT:
    case OPCode.CALL:
    case OPCode.RETURN: // it will appear only with CALL though
        regex.stackNeeded = true;
    }
}
 
Example 8
Source File: ArrayCompiler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void addOpcode(int opcode) {
    addInt(opcode);

    switch(opcode) {
    case OPCode.ANYCHAR_STAR:
    case OPCode.ANYCHAR_ML_STAR:
    case OPCode.ANYCHAR_STAR_PEEK_NEXT:
    case OPCode.ANYCHAR_ML_STAR_PEEK_NEXT:
    case OPCode.STATE_CHECK_ANYCHAR_STAR:
    case OPCode.STATE_CHECK_ANYCHAR_ML_STAR:
    case OPCode.MEMORY_START_PUSH:
    case OPCode.MEMORY_END_PUSH:
    case OPCode.MEMORY_END_PUSH_REC:
    case OPCode.MEMORY_END_REC:
    case OPCode.NULL_CHECK_START:
    case OPCode.NULL_CHECK_END_MEMST_PUSH:
    case OPCode.PUSH:
    case OPCode.STATE_CHECK_PUSH:
    case OPCode.STATE_CHECK_PUSH_OR_JUMP:
    case OPCode.STATE_CHECK:
    case OPCode.PUSH_OR_JUMP_EXACT1:
    case OPCode.PUSH_IF_PEEK_NEXT:
    case OPCode.REPEAT:
    case OPCode.REPEAT_NG:
    case OPCode.REPEAT_INC_SG:
    case OPCode.REPEAT_INC_NG:
    case OPCode.REPEAT_INC_NG_SG:
    case OPCode.PUSH_POS:
    case OPCode.PUSH_POS_NOT:
    case OPCode.PUSH_STOP_BT:
    case OPCode.PUSH_LOOK_BEHIND_NOT:
    case OPCode.CALL:
    case OPCode.RETURN: // it will appear only with CALL though
        regex.stackNeeded = true;
    }
}
 
Example 9
Source File: ArrayCompiler.java    From jdk8u_nashorn with GNU General Public License v2.0 5 votes vote down vote up
private void addOpcode(final int opcode) {
    addInt(opcode);

    switch(opcode) {
    case OPCode.ANYCHAR_STAR:
    case OPCode.ANYCHAR_ML_STAR:
    case OPCode.ANYCHAR_STAR_PEEK_NEXT:
    case OPCode.ANYCHAR_ML_STAR_PEEK_NEXT:
    case OPCode.STATE_CHECK_ANYCHAR_STAR:
    case OPCode.STATE_CHECK_ANYCHAR_ML_STAR:
    case OPCode.MEMORY_START_PUSH:
    case OPCode.MEMORY_END_PUSH:
    case OPCode.MEMORY_END_PUSH_REC:
    case OPCode.MEMORY_END_REC:
    case OPCode.NULL_CHECK_START:
    case OPCode.NULL_CHECK_END_MEMST_PUSH:
    case OPCode.PUSH:
    case OPCode.STATE_CHECK_PUSH:
    case OPCode.STATE_CHECK_PUSH_OR_JUMP:
    case OPCode.STATE_CHECK:
    case OPCode.PUSH_OR_JUMP_EXACT1:
    case OPCode.PUSH_IF_PEEK_NEXT:
    case OPCode.REPEAT:
    case OPCode.REPEAT_NG:
    case OPCode.REPEAT_INC_SG:
    case OPCode.REPEAT_INC_NG:
    case OPCode.REPEAT_INC_NG_SG:
    case OPCode.PUSH_POS:
    case OPCode.PUSH_POS_NOT:
    case OPCode.PUSH_STOP_BT:
    case OPCode.PUSH_LOOK_BEHIND_NOT:
    case OPCode.CALL:
    case OPCode.RETURN: // it will appear only with CALL though
        regex.stackNeeded = true;
        break;
    default:
        break;
    }
}
 
Example 10
Source File: ArrayCompiler.java    From nashorn with GNU General Public License v2.0 5 votes vote down vote up
private void addOpcode(int opcode) {
    addInt(opcode);

    switch(opcode) {
    case OPCode.ANYCHAR_STAR:
    case OPCode.ANYCHAR_ML_STAR:
    case OPCode.ANYCHAR_STAR_PEEK_NEXT:
    case OPCode.ANYCHAR_ML_STAR_PEEK_NEXT:
    case OPCode.STATE_CHECK_ANYCHAR_STAR:
    case OPCode.STATE_CHECK_ANYCHAR_ML_STAR:
    case OPCode.MEMORY_START_PUSH:
    case OPCode.MEMORY_END_PUSH:
    case OPCode.MEMORY_END_PUSH_REC:
    case OPCode.MEMORY_END_REC:
    case OPCode.NULL_CHECK_START:
    case OPCode.NULL_CHECK_END_MEMST_PUSH:
    case OPCode.PUSH:
    case OPCode.STATE_CHECK_PUSH:
    case OPCode.STATE_CHECK_PUSH_OR_JUMP:
    case OPCode.STATE_CHECK:
    case OPCode.PUSH_OR_JUMP_EXACT1:
    case OPCode.PUSH_IF_PEEK_NEXT:
    case OPCode.REPEAT:
    case OPCode.REPEAT_NG:
    case OPCode.REPEAT_INC_SG:
    case OPCode.REPEAT_INC_NG:
    case OPCode.REPEAT_INC_NG_SG:
    case OPCode.PUSH_POS:
    case OPCode.PUSH_POS_NOT:
    case OPCode.PUSH_STOP_BT:
    case OPCode.PUSH_LOOK_BEHIND_NOT:
    case OPCode.CALL:
    case OPCode.RETURN: // it will appear only with CALL though
        regex.stackNeeded = true;
    }
}