summaryrefslogtreecommitdiffstats
path: root/compiler/linker/relative_patcher.h
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2015-04-02 19:51:49 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-02 19:51:49 +0000
commit3795e94a8bd42a1de3a98935f45399f1805a9f6e (patch)
tree8e87fa800ee73791d70e5c2cad87ea8dc09deab6 /compiler/linker/relative_patcher.h
parent93c65adb3d7bd1d3815715df433d185219045230 (diff)
parent71b0ddf988208c9f77e7d2c1e75066cc3fe20c61 (diff)
downloadandroid_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.h6
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;