Lines Matching defs:data
9 // manipulates data structures used by the trap handler so we still need to be
76 const auto* data = gCodeObjects[i].code_info;
78 if (data == nullptr) continue;
80 // Do some sanity checks on the protected instruction data
81 for (unsigned j = 0; j < data->num_protected_instructions; ++j) {
82 TH_DCHECK(data->instructions[j].instr_offset >= 0);
83 TH_DCHECK(data->instructions[j].instr_offset < data->size);
84 TH_DCHECK(data->instructions[j].landing_offset >= 0);
85 TH_DCHECK(data->instructions[j].landing_offset < data->size);
86 TH_DCHECK(data->instructions[j].landing_offset >
87 data->instructions[j].instr_offset);
118 CodeProtectionInfo* data =
121 if (data == nullptr) {
125 data->base = base;
126 data->size = size;
127 data->num_protected_instructions = num_protected_instructions;
129 memcpy(data->instructions, protected_instructions,
132 return data;
138 CodeProtectionInfo* data = CreateHandlerData(
141 if (data == nullptr) {
148 VerifyCodeRangeIsDisjoint(data);
171 free(data);
198 gCodeObjects[i].code_info = data;
206 free(data);
217 // Remove the data from the global list if it's there.
218 CodeProtectionInfo* data = nullptr;
222 data = gCodeObjects[index].code_info;
234 TH_DCHECK(data); // make sure we're releasing legitimate handler data.
235 free(data);