Home | History | Annotate | Download | only in c
      1 HANDLE_OPCODE(OP_ARRAY_LENGTH /*vA, vB*/)
      2     {
      3         ArrayObject* arrayObj;
      4 
      5         vdst = INST_A(inst);
      6         vsrc1 = INST_B(inst);
      7         arrayObj = (ArrayObject*) GET_REGISTER(vsrc1);
      8         ILOGV("|array-length v%d,v%d  (%p)", vdst, vsrc1, arrayObj);
      9         if (!checkForNullExportPC((Object*) arrayObj, fp, pc))
     10             GOTO_exceptionThrown();
     11         /* verifier guarantees this is an array reference */
     12         SET_REGISTER(vdst, arrayObj->length);
     13     }
     14     FINISH(1);
     15 OP_END
     16