summaryrefslogtreecommitdiff
path: root/compiler/linker/relative_patcher.h
diff options
context:
space:
mode:
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;