diff options
author | 2022-09-29 11:55:37 +0200 | |
---|---|---|
committer | 2022-09-29 12:09:38 +0000 | |
commit | 7dec3562e903bf038f22c763fccd4dfa77f0468b (patch) | |
tree | a05c6048127fe1b1a211c09d3b8743ec439676ab /compiler/common_compiler_test.cc | |
parent | 8a9b1a801acc633a4e1ea2226843c899a542ed70 (diff) |
Rename `GetInstructionSet{,Code}Alignment`.
Update the `GetInstructionSetAlignment()` function name to
`GetInstructionSetCodeAlignment()` in line with renames from
https://android-review.googlesource.com/2229498 .
Move the function to `instruction_set.h` and change the
handling of unknown instruction sets to the approach used
in other functions in the header file.
Test: buildbot-build.sh --target
Change-Id: I8239b94b56bf24f4e99a2d72ba10ec1f5a055d36
Diffstat (limited to 'compiler/common_compiler_test.cc')
-rw-r--r-- | compiler/common_compiler_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index ab0e3e17cf..a63d21d4ca 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -58,7 +58,7 @@ class CommonCompilerTestImpl::CodeAndMetadata { const uint32_t vmap_table_offset = vmap_table.empty() ? 0u : sizeof(OatQuickMethodHeader) + vmap_table.size(); OatQuickMethodHeader method_header(vmap_table_offset); - const size_t code_alignment = GetInstructionSetAlignment(instruction_set); + const size_t code_alignment = GetInstructionSetCodeAlignment(instruction_set); DCHECK_ALIGNED_PARAM(kPageSize, code_alignment); code_offset_ = RoundUp(vmap_table.size() + sizeof(method_header), code_alignment); const uint32_t capacity = RoundUp(code_offset_ + code_size, kPageSize); |