Home
last modified time | relevance | path

Searched refs:expected_code (Results 1 – 8 of 8) sorted by relevance

/art/compiler/linker/x86/
Drelative_patcher_x86_test.cc52 static const uint8_t expected_code[] = { in TEST_F() local
55 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
101 static const uint8_t expected_code[] = { in TEST_F() local
108 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
132 static const uint8_t expected_code[] = { in TEST_F() local
141 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
164 static const uint8_t expected_code[] = { in TEST_F() local
173 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
/art/compiler/linker/x86_64/
Drelative_patcher_x86_64_test.cc72 static const uint8_t expected_code[] = { in TEST_F() local
75 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
121 static const uint8_t expected_code[] = { in TEST_F() local
128 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
145 static const uint8_t expected_code[] = { in TEST_F() local
152 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
169 static const uint8_t expected_code[] = { in TEST_F() local
176 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
/art/compiler/linker/
Drelative_patcher_test.h190 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { in CheckLinkedMethod() argument
200 CHECK_EQ(compiled_methods_[idx]->GetQuickCode().size(), expected_code.size()); in CheckLinkedMethod()
206 CHECK_LE(offset + expected_code.size(), output_.size()); in CheckLinkedMethod()
207 ArrayRef<const uint8_t> linked_code(&output_[offset], expected_code.size()); in CheckLinkedMethod()
208 if (linked_code == expected_code) { in CheckLinkedMethod()
212 DumpDiff(expected_code, linked_code); in CheckLinkedMethod()
216 void DumpDiff(const ArrayRef<const uint8_t>& expected_code, in DumpDiff() argument
223 for (size_t i = 0; i != expected_code.size(); ++i) { in DumpDiff()
224 expected_hex << " " << digits[expected_code[i] >> 4] << digits[expected_code[i] & 0xf]; in DumpDiff()
227 found_diff = (expected_code[i] != linked_code[i]); in DumpDiff()
/art/compiler/linker/arm/
Drelative_patcher_thumb2_test.cc202 const std::vector<uint8_t> expected_code = CompileMethodCallThunk(); in CheckThunk() local
203 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk()
205 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk()
208 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
209 if (linked_code == ArrayRef<const uint8_t>(expected_code)) { in CheckThunk()
213 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code); in CheckThunk()
338 const uint8_t expected_code[] = { in CheckPcRelativePatch() local
345 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch()
355 static const uint8_t expected_code[] = { in TEST_F() local
358 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
[all …]
/art/compiler/linker/arm64/
Drelative_patcher_arm64_test.cc181 const std::vector<uint8_t> expected_code = CompileMethodCallThunk(); in CheckThunk() local
182 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk()
184 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk()
187 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
188 if (linked_code == ArrayRef<const uint8_t>(expected_code)) { in CheckThunk()
192 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code); in CheckThunk()
270 auto expected_code = GenNopsAndAdrpLdr(num_nops, method1_offset, target_offset); in TestNopsAdrpLdr() local
271 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpLdr()
294 auto expected_code = GenNopsAndAdrpAdd(num_nops, method1_offset, string_offset); in TestNopsAdrpAdd() local
295 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpAdd()
[all …]
/art/compiler/linker/mips64/
Drelative_patcher_mips64_test.cc71 const uint8_t expected_code[] = { in CheckPcRelativePatch() local
76 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch()
/art/compiler/linker/mips/
Drelative_patcher_mips32r6_test.cc69 const uint8_t expected_code[] = { in CheckPcRelativePatch() local
74 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch()
Drelative_patcher_mips_test.cc72 const uint8_t expected_code[] = { in CheckPcRelativePatch() local
79 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch()