summaryrefslogtreecommitdiff
path: root/compiler/oat_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2017-05-15 13:39:18 +0100
committer Vladimir Marko <vmarko@google.com> 2017-06-07 15:39:24 +0100
commit0eb882bfc5d260e8014c26adfda11602065aa5d8 (patch)
treee66dbebfb1e9a254c20954a2f2f98541aebfd5af /compiler/oat_test.cc
parentb5f5d746ac3f2c3088292395603cb1470e7749d2 (diff)
Use ArtMethod* .bss entries for HInvokeStaticOrDirect.
Test: m test-art-host-gtest Test: testrunner.py --host Test: testrunner.py --target Test: Nexus 6P boots. Test: Build aosp_mips64-userdebug. Bug: 30627598 Change-Id: I0e54fdd2e91e983d475b7a04d40815ba89ae3d4f
Diffstat (limited to 'compiler/oat_test.cc')
-rw-r--r--compiler/oat_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/oat_test.cc b/compiler/oat_test.cc
index 1578c0cd3e..fdb21e4dba 100644
--- a/compiler/oat_test.cc
+++ b/compiler/oat_test.cc
@@ -220,6 +220,7 @@ class OatTest : public CommonCompilerTest {
elf_writer->PrepareDynamicSection(rodata_size,
text_size,
oat_writer.GetBssSize(),
+ oat_writer.GetBssMethodsOffset(),
oat_writer.GetBssRootsOffset());
if (kIsVdexEnabled) {
@@ -483,7 +484,7 @@ TEST_F(OatTest, WriteRead) {
TEST_F(OatTest, OatHeaderSizeCheck) {
// If this test is failing and you have to update these constants,
// it is time to update OatHeader::kOatVersion
- EXPECT_EQ(72U, sizeof(OatHeader));
+ EXPECT_EQ(76U, sizeof(OatHeader));
EXPECT_EQ(4U, sizeof(OatMethodOffsets));
EXPECT_EQ(24U, sizeof(OatQuickMethodHeader));
EXPECT_EQ(161 * static_cast<size_t>(GetInstructionSetPointerSize(kRuntimeISA)),