Home | History | Annotate | Download | only in linker

Lines Matching refs:offset

47   // The adjustment should be the global offset of the base from which relative
50 // with value 0 because this value is used as a missing offset indication in
55 // Get relative offset. Returns 0 when the offset has not been set yet.
61 // Set the offset.
62 void SetOffset(MethodReference method_ref, uint32_t offset) {
63 method_offset_map_.map.Put(method_ref, offset + adjustment_);
66 // Wrapper around RelativePatcher::ReserveSpace(), doing offset adjustment.
67 uint32_t ReserveSpace(uint32_t offset,
70 offset += adjustment_;
71 offset = relative_patcher_->ReserveSpace(offset, compiled_method, method_ref);
72 offset -= adjustment_;
73 return offset;
76 // Wrapper around RelativePatcher::ReserveSpaceEnd(), doing offset adjustment.
77 uint32_t ReserveSpaceEnd(uint32_t offset) {
78 offset += adjustment_;
79 offset = relative_patcher_->ReserveSpaceEnd(offset);
80 offset -= adjustment_;
81 return offset;
84 // Wrapper around RelativePatcher::WriteThunks(), doing offset adjustment.
85 uint32_t WriteThunks(OutputStream* out, uint32_t offset) {
86 offset += adjustment_;
87 offset = relative_patcher_->WriteThunks(out, offset);
88 if (offset != 0u) { // 0u indicates write error.
89 offset -= adjustment_;
91 return offset;
94 // Wrapper around RelativePatcher::PatchCall(), doing offset adjustment.
104 // Wrapper around RelativePatcher::PatchPcRelativeReference(), doing offset adjustment.
132 // Map method reference to assigned offset.