static groupOf(name) {
    var rep = null;
    var names = null;

    switch (name) {
      // Remap / filter these instructions.
      case "cmpsd": names = ["cmpsd"]; rep = false; break;
      case "movsd": names = ["movsd"]; rep = false; break;
      case "cmps" : names = ["cmpsb", "cmpsw", "cmpsd", "cmpsq"]; rep = true; break;
      case "movs" : names = ["movsb", "movsw", "movsd", "movsq"]; rep = true; break;
      case "lods" : names = ["lodsb", "lodsw", "lodsd", "lodsq"]; break;
      case "scas" : names = ["scasb", "scasw", "scasd", "scasq"]; break;
      case "stos" : names = ["stosb", "stosw", "stosd", "stosq"]; break;
      case "ins"  : names = ["insb" , "insw" , "insd" ]; break;
      case "outs" : names = ["outsb", "outsw", "outsd"]; break;

      default:
        return x86db.getGroup(name);
    }

    const insts = [];
    for (var i = 0; i < names.length; i++) {
      insts.push.apply(insts, x86db.getGroup(names[i]));
    }

    if (rep === null)
      return insts;

    // Filter, if needed.
    const output = [];
    for (var i = 0; i < insts.length; i++) {
      const inst = insts[i];
      if (rep === !!(inst.rep || inst.repz || inst.repnz))
        output.push(inst);
    }
    return output;
  }
// Get group of instructions having the same name as understood by AsmJit.

Get group of instructions having the same name as understood by AsmJit.
Get group of instructions having the same name as understood by AsmJit .
static groupOf(name) {
    var rep = null;
    var names = null;
    switch (name) {
      case "cmpsd": names = ["cmpsd"]; rep = false; break;
      case "movsd": names = ["movsd"]; rep = false; break;
      case "cmps" : names = ["cmpsb", "cmpsw", "cmpsd", "cmpsq"]; rep = true; break;
      case "movs" : names = ["movsb", "movsw", "movsd", "movsq"]; rep = true; break;
      case "lods" : names = ["lodsb", "lodsw", "lodsd", "lodsq"]; break;
      case "scas" : names = ["scasb", "scasw", "scasd", "scasq"]; break;
      case "stos" : names = ["stosb", "stosw", "stosd", "stosq"]; break;
      case "ins"  : names = ["insb" , "insw" , "insd" ]; break;
      case "outs" : names = ["outsb", "outsw", "outsd"]; break;
      default:
        return x86db.getGroup(name);
    }
    const insts = [];
    for (var i = 0; i < names.length; i++) {
      insts.push.apply(insts, x86db.getGroup(names[i]));
    }
    if (rep === null)
      return insts;
    const output = [];
    for (var i = 0; i < insts.length; i++) {
      const inst = insts[i];
      if (rep === !!(inst.rep || inst.repz || inst.repnz))
        output.push(inst);
    }
    return output;
  }
static groupOf ( name ) { var rep = null ; var names = null ; switch ( name ) { case "cmpsd" : names = [ "cmpsd" ] ; rep = false ; break ; case "movsd" : names = [ "movsd" ] ; rep = false ; break ; case "cmps" : names = [ "cmpsb" , "cmpsw" , "cmpsd" , "cmpsq" ] ; rep = true ; break ; case "movs" : names = [ "movsb" , "movsw" , "movsd" , "movsq" ] ; rep = true ; break ; case "lods" : names = [ "lodsb" , "lodsw" , "lodsd" , "lodsq" ] ; break ; case "scas" : names = [ "scasb" , "scasw" , "scasd" , "scasq" ] ; break ; case "stos" : names = [ "stosb" , "stosw" , "stosd" , "stosq" ] ; break ; case "ins" : names = [ "insb" , "insw" , "insd" ] ; break ; case "outs" : names = [ "outsb" , "outsw" , "outsd" ] ; break ; default : return x86db . getGroup ( name ) ; } const insts = [ ] ; for ( var i = 0 ; i < names . length ; i ++ ) { insts . push . apply ( insts , x86db . getGroup ( names [ i ] ) ) ; } if ( rep === null ) return insts ; const output = [ ] ; for ( var i = 0 ; i < insts . length ; i ++ ) { const inst = insts [ i ] ; if ( rep === ! ! ( inst . rep || inst . repz || inst . repnz ) ) output . push ( inst ) ; } return output ; }
Get group of instructions having the same name as understood by AsmJit.
Get group of instructions having the same name as understood by AsmJit .
// Remap / filter these instructions.
 // Filter, if needed.
