Home | History | Annotate | Download | only in verifier

Lines Matching refs:cur_offset

1007 bool MethodVerifier::CheckArrayData(uint32_t cur_offset) {
1009 const uint16_t* insns = code_item_->insns_ + cur_offset;
1013 DCHECK_LT(cur_offset, insn_count);
1016 if ((int32_t) cur_offset + array_data_offset < 0 ||
1017 cur_offset + array_data_offset + 2 >= insn_count) {
1018 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "invalid array data start: at " << cur_offset
1027 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "unaligned array data table: at " << cur_offset
1035 if (cur_offset + array_data_offset + table_size > insn_count) {
1036 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "invalid array data end: at " << cur_offset
1038 << cur_offset + array_data_offset + table_size
1045 bool MethodVerifier::CheckBranchTarget(uint32_t cur_offset) {
1048 if (!GetBranchOffset(cur_offset, &offset, &isConditional, &selfOkay)) {
1053 << reinterpret_cast<void*>(cur_offset);
1058 if (((int64_t) cur_offset + (int64_t) offset) != (int64_t) (cur_offset + offset)) {
1060 << reinterpret_cast<void*>(cur_offset) << " +" << offset;
1064 int32_t abs_offset = cur_offset + offset;
1070 << reinterpret_cast<void*>(cur_offset);
1077 bool MethodVerifier::GetBranchOffset(uint32_t cur_offset, int32_t* pOffset, bool* pConditional,
1079 const uint16_t* insns = code_item_->insns_ + cur_offset;
1114 bool MethodVerifier::CheckSwitchTargets(uint32_t cur_offset) {
1116 DCHECK_LT(cur_offset, insn_count);
1117 const uint16_t* insns = code_item_->insns_ + cur_offset;
1120 if ((int32_t) cur_offset + switch_offset < 0 || cur_offset + switch_offset + 2 > insn_count) {
1121 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "invalid switch start: at " << cur_offset
1130 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "unaligned switch table: at " << cur_offset
1156 if (cur_offset + switch_offset + table_size > (uint32_t) insn_count) {
1157 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "invalid switch end: at " << cur_offset
1159 << ", end " << (cur_offset + switch_offset + table_size)
1181 int32_t abs_offset = cur_offset + offset;
1187 cur_offset)