Home
last modified time | relevance | path

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

/art/dex2oat/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/dex2oat/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/dex2oat/linker/arm/
Drelative_patcher_thumb2_test.cc249 const std::vector<uint8_t> expected_code = CompileMethodCallThunk(); in CheckThunk() local
250 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk()
252 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk()
255 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
256 if (linked_code == ArrayRef<const uint8_t>(expected_code)) { in CheckThunk()
260 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code); in CheckThunk()
396 const uint8_t expected_code[] = { in CheckPcRelativePatch() local
403 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch()
413 static const uint8_t expected_code[] = { in TEST_F() local
416 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
[all …]
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64_test.cc222 const std::vector<uint8_t> expected_code = CompileMethodCallThunk(); in CheckThunk() local
223 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk()
225 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk()
228 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
229 if (linked_code == ArrayRef<const uint8_t>(expected_code)) { in CheckThunk()
233 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code); in CheckThunk()
311 auto expected_code = GenNopsAndAdrpLdr(num_nops, method1_offset, target_offset); in TestNopsAdrpLdr() local
312 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpLdr()
335 auto expected_code = GenNopsAndAdrpAdd(num_nops, method1_offset, string_offset); in TestNopsAdrpAdd() local
336 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpAdd()
[all …]
/art/dex2oat/linker/
Drelative_patcher_test.h211 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { in CheckLinkedMethod() argument
221 CHECK_EQ(compiled_methods_[idx]->GetQuickCode().size(), expected_code.size()); in CheckLinkedMethod()
227 CHECK_LE(offset + expected_code.size(), output_.size()); in CheckLinkedMethod()
228 ArrayRef<const uint8_t> linked_code(&output_[offset], expected_code.size()); in CheckLinkedMethod()
229 if (linked_code == expected_code) { in CheckLinkedMethod()
233 DumpDiff(expected_code, linked_code); in CheckLinkedMethod()
237 void DumpDiff(const ArrayRef<const uint8_t>& expected_code, in DumpDiff() argument
244 for (size_t i = 0; i != expected_code.size(); ++i) { in DumpDiff()
245 expected_hex << " " << digits[expected_code[i] >> 4] << digits[expected_code[i] & 0xf]; in DumpDiff()
248 found_diff = (expected_code[i] != linked_code[i]); in DumpDiff()
/art/dex2oat/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/dex2oat/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()