Searched refs:expected_code (Results 1 – 5 of 5) sorted by relevance
/art/compiler/linker/arm/ |
D | relative_patcher_thumb2_test.cc | 96 ArrayRef<const uint8_t> expected_code(patcher->thunk_code_); in CheckThunk() local 97 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk() 99 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk() 102 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk() 103 if (linked_code == expected_code) { in CheckThunk() 107 DumpDiff(expected_code, linked_code); in CheckThunk() 157 const uint8_t expected_code[] = { in TestDexCachereference() local 164 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestDexCachereference() 187 static const uint8_t expected_code[] = { in TEST_F() local 190 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() [all …]
|
/art/compiler/linker/arm64/ |
D | relative_patcher_arm64_test.cc | 121 ArrayRef<const uint8_t> expected_code(patcher->thunk_code_); in CheckThunk() local 122 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk() 124 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk() 127 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk() 128 if (linked_code == expected_code) { in CheckThunk() 132 DumpDiff(expected_code, linked_code); in CheckThunk() 192 auto expected_code = GenNopsAndAdrpLdr(num_nops, method1_offset, target_offset); in TestNopsAdrpLdr() local 193 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpLdr() 226 auto expected_code = GenNopsAndAdrpLdr(num_nops, method1_offset, target_offset); in TestNopsAdrpInsn2Ldr() local 227 InsertInsn(&expected_code, num_nops * 4u + 4u, insn2); in TestNopsAdrpInsn2Ldr() [all …]
|
/art/compiler/linker/ |
D | relative_patcher_test.h | 155 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { in CheckLinkedMethod() argument 166 CHECK_EQ(compiled_methods_[idx]->GetQuickCode()->size(), expected_code.size()); in CheckLinkedMethod() 172 CHECK_LE(offset + expected_code.size(), output_.size()); in CheckLinkedMethod() 173 ArrayRef<const uint8_t> linked_code(&output_[offset], expected_code.size()); in CheckLinkedMethod() 174 if (linked_code == expected_code) { in CheckLinkedMethod() 178 DumpDiff(expected_code, linked_code); in CheckLinkedMethod() 182 void DumpDiff(const ArrayRef<const uint8_t>& expected_code, in DumpDiff() argument 189 for (size_t i = 0; i != expected_code.size(); ++i) { in DumpDiff() 190 expected_hex << " " << digits[expected_code[i] >> 4] << digits[expected_code[i] & 0xf]; in DumpDiff() 193 found_diff = (expected_code[i] != linked_code[i]); in DumpDiff()
|
/art/compiler/linker/x86/ |
D | relative_patcher_x86_test.cc | 51 static const uint8_t expected_code[] = { in TEST_F() local 54 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 96 static const uint8_t expected_code[] = { in TEST_F() local 101 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 124 static const uint8_t expected_code[] = { in TEST_F() local 131 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
|
/art/compiler/linker/x86_64/ |
D | relative_patcher_x86_64_test.cc | 61 static const uint8_t expected_code[] = { in TEST_F() local 64 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 106 static const uint8_t expected_code[] = { in TEST_F() local 111 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 127 static const uint8_t expected_code[] = { in TEST_F() local 132 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
|