1 HANDLE_OPCODE(OP_CONST_CLASS /*vAA, class@BBBB*/) 2 { 3 ClassObject* clazz; 4 5 vdst = INST_AA(inst); 6 ref = FETCH(1); 7 ILOGV("|const-class v%d class@0x%04x", vdst, ref); 8 clazz = dvmDexGetResolvedClass(methodClassDex, ref); 9 if (clazz == NULL) { 10 EXPORT_PC(); 11 clazz = dvmResolveClass(curMethod->clazz, ref, true); 12 if (clazz == NULL) 13 GOTO_exceptionThrown(); 14 } 15 SET_REGISTER(vdst, (u4) clazz); 16 } 17 FINISH(2); 18 OP_END 19