Home | History | Annotate | Download | only in verifier

Lines Matching refs:cur_offset

877 bool MethodVerifier::CheckArrayData(uint32_t cur_offset) {
879 const uint16_t* insns = code_item_->insns_ + cur_offset;
883 DCHECK_LT(cur_offset, insn_count);
886 if ((int32_t) cur_offset + array_data_offset < 0 ||
887 cur_offset + array_data_offset + 2 >= insn_count) {
888 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "invalid array data start: at " << cur_offset
897 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "unaligned array data table: at " << cur_offset
905 if (cur_offset + array_data_offset + table_size > insn_count) {
906 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "invalid array data end: at " << cur_offset
908 << cur_offset + array_data_offset + table_size
915 bool MethodVerifier::CheckBranchTarget(uint32_t cur_offset) {
918 if (!GetBranchOffset(cur_offset, &offset, &isConditional, &selfOkay)) {
923 << reinterpret_cast<void*>(cur_offset);
928 if (((int64_t) cur_offset + (int64_t) offset) != (int64_t) (cur_offset + offset)) {
930 << reinterpret_cast<void*>(cur_offset) << " +" << offset;
934 int32_t abs_offset = cur_offset + offset;
940 << reinterpret_cast<void*>(cur_offset);
947 bool MethodVerifier::GetBranchOffset(uint32_t cur_offset, int32_t* pOffset, bool* pConditional,
949 const uint16_t* insns = code_item_->insns_ + cur_offset;
985 bool MethodVerifier::CheckSwitchTargets(uint32_t cur_offset) {
987 DCHECK_LT(cur_offset, insn_count);
988 const uint16_t* insns = code_item_->insns_ + cur_offset;
991 if ((int32_t) cur_offset + switch_offset < 0 || cur_offset + switch_offset + 2 >= insn_count) {
992 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "invalid switch start: at " << cur_offset
1001 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "unaligned switch table: at " << cur_offset
1027 if (cur_offset + switch_offset + table_size > (uint32_t) insn_count) {
1028 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "invalid switch end: at " << cur_offset
1030 << ", end " << (cur_offset + switch_offset + table_size)
1052 int32_t abs_offset = cur_offset + offset;
1058 << reinterpret_cast<void*>(cur_offset)