Lines Matching refs:offset
48 // The adjustment should be the global offset of the base from which relative
51 // with value 0 because this value is used as a missing offset indication in
56 // Get relative offset. Returns 0 when the offset has not been set yet.
62 // Set the offset.
63 void SetOffset(MethodReference method_ref, uint32_t offset) {
64 method_offset_map_.map.Put(method_ref, offset + adjustment_);
67 // Wrapper around RelativePatcher::ReserveSpace(), doing offset adjustment.
68 uint32_t ReserveSpace(uint32_t offset,
71 offset += adjustment_;
72 offset = relative_patcher_->ReserveSpace(offset, compiled_method, method_ref);
73 offset -= adjustment_;
74 return offset;
77 // Wrapper around RelativePatcher::ReserveSpaceEnd(), doing offset adjustment.
78 uint32_t ReserveSpaceEnd(uint32_t offset) {
79 offset += adjustment_;
80 offset = relative_patcher_->ReserveSpaceEnd(offset);
81 offset -= adjustment_;
82 return offset;
85 // Wrapper around RelativePatcher::WriteThunks(), doing offset adjustment.
86 uint32_t WriteThunks(OutputStream* out, uint32_t offset) {
87 offset += adjustment_;
88 offset = relative_patcher_->WriteThunks(out, offset);
89 if (offset != 0u) { // 0u indicates write error.
90 offset -= adjustment_;
92 return offset;
95 // Wrapper around RelativePatcher::PatchCall(), doing offset adjustment.
105 // Wrapper around RelativePatcher::PatchDexCacheReference(), doing offset adjustment.
121 // Map method reference to assigned offset.