diff options
author | Vladimir Marko <vmarko@google.com> | 2015-04-02 19:51:49 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-02 19:51:49 +0000 |
commit | 3795e94a8bd42a1de3a98935f45399f1805a9f6e (patch) | |
tree | 8e87fa800ee73791d70e5c2cad87ea8dc09deab6 /compiler/linker/relative_patcher.h | |
parent | 93c65adb3d7bd1d3815715df433d185219045230 (diff) | |
parent | 71b0ddf988208c9f77e7d2c1e75066cc3fe20c61 (diff) | |
download | android_art-3795e94a8bd42a1de3a98935f45399f1805a9f6e.tar.gz android_art-3795e94a8bd42a1de3a98935f45399f1805a9f6e.tar.bz2 android_art-3795e94a8bd42a1de3a98935f45399f1805a9f6e.zip |
Merge "Split RelativePatcher::ReserveSpace() into two."
Diffstat (limited to 'compiler/linker/relative_patcher.h')
-rw-r--r-- | compiler/linker/relative_patcher.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/linker/relative_patcher.h b/compiler/linker/relative_patcher.h index 7a78254787..8a9f3f8364 100644 --- a/compiler/linker/relative_patcher.h +++ b/compiler/linker/relative_patcher.h @@ -82,11 +82,13 @@ class RelativePatcher { return size_misc_thunks_; } - // Reserve space for relative call thunks if needed, return adjusted offset. After all methods - // of a class have been processed it's called one last time with compiled_method == nullptr. + // Reserve space for thunks if needed before a method, return adjusted offset. virtual uint32_t ReserveSpace(uint32_t offset, const CompiledMethod* compiled_method, MethodReference method_ref) = 0; + // Reserve space for thunks if needed after the last method, return adjusted offset. + virtual uint32_t ReserveSpaceEnd(uint32_t offset) = 0; + // Write relative call thunks if needed, return adjusted offset. virtual uint32_t WriteThunks(OutputStream* out, uint32_t offset) = 0; |