Closed Bug 1020141 Opened 11 years ago Closed 11 years ago

IonMonkey: (ARM) remove the unused 'offset' field from RelativePatch.

Categories

(Core :: JavaScript Engine: JIT, defect)

ARM
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33
Tracking Status
firefox31 --- fixed
firefox32 --- fixed
firefox33 --- fixed

People

(Reporter: dougc, Assigned: dougc)

Details

(Whiteboard: [qa-] )

Attachments

(1 file)

The 'offset' field of RelativePatch is not used. There is even code to update this offset to it's actualOffset() in finish(). If it has no planned use then can we remove it.
Attachment #8433966 - Flags: review?(mrosenberg) → review+
Double checked this patch, and it still looks good. The x86 and x64 backends use pc relative jumps which need to be patched in executableCopy() so they need the 'offset' field. Whereas the ARM backend jumps to an absolute address that is inlined or stored in a constant pool and these do no need patching, so the 'offset' field is not needed by the ARM backend.
Keywords: checkin-needed
Comment on attachment 8433966 [details] [diff] [review] Remove the unused 'offset' field from RelativePatch. [Approval Request Comment] Bug caused by (feature/regressing bug #): long standing issue. User impact if declined: None, but 31 is an ESR release and a lot of ARM backend patches need uplifting for this, and lowering the differences between 31 and m-c will help this work. Testing completed (on m-c, etc.): locally, and try build Risk to taking this patch (and alternatives if risky): very low. String or IDL/UUID changes made by this patch: n/a
Attachment #8433966 - Flags: approval-mozilla-beta?
Attachment #8433966 - Flags: approval-mozilla-aurora?
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Attachment #8433966 - Flags: approval-mozilla-beta?
Attachment #8433966 - Flags: approval-mozilla-beta+
Attachment #8433966 - Flags: approval-mozilla-aurora?
Attachment #8433966 - Flags: approval-mozilla-aurora+
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: