Lines Matching refs:expected_code
184 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) {
195 CHECK_EQ(compiled_methods_[idx]->GetQuickCode().size(), expected_code.size());
201 CHECK_LE(offset + expected_code.size(), output_.size());
202 ArrayRef<const uint8_t> linked_code(&output_[offset], expected_code.size());
203 if (linked_code == expected_code) {
207 DumpDiff(expected_code, linked_code);
211 void DumpDiff(const ArrayRef<const uint8_t>& expected_code,
218 for (size_t i = 0; i != expected_code.size(); ++i) {
219 expected_hex << " " << digits[expected_code[i] >> 4] << digits[expected_code[i] & 0xf];
222 found_diff = (expected_code[i] != linked_code[i]);
240 LOG(ERROR) << "diff expected_code linked_code";