Closed Bug 557887 Opened 15 years ago Closed 15 years ago

Rename LOpcode enums in LIR.h

Categories

(Core Graveyard :: Nanojit, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: edwsmith, Unassigned)

References

Details

(Whiteboard: fixed-in-nanojit, fixed-in-tracemonkey, fixed-in-tamarin)

Attachments

(1 file, 2 obsolete files)

To be done mechanically using an updated script from bug 504506.
Blocks: 504506
Attached patch Rename LIR opcodes in LIR.h (obsolete) — Splinter Review
mechanical renamed using rename_LIR.pl, then backed out the alias patch hunks, and updated the pointer-sized aliases to use the new opcodes instead of PTR_SIZE macros using old opcodes.
Assignee: nobody → edwsmith
Attachment #437642 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #439542 - Flags: review?(nnethercote)
Comment on attachment 439542 [details] [diff] [review] Rename LIR opcodes in LIR.h >- LIR_param = PTR_SIZE(LIR_iparam, LIR_qparam), >+ LIR_param = LIR_paramp, There wasn't much point doing these as they'll disappear eventually, but it doesn't hurt. >- // Used for LIR_iparam, LIR_qparam. >+ // Used for LIR_paraml, LIR_paramq. > class LInsP > { > private: >@@ -1292,7 +1292,7 @@ > LIns* getLIns() { return &ins; }; > }; > >- // Used for LIR_int and LIR_alloc. >+ // Used for LIR_imml and LIR_allocp. Might as well say "Used for LIR_paramp" for LInsP, to match "Used for ... LIR_allocp". The rest looks fine and passed testing on TM.
Attachment #439542 - Flags: review?(nnethercote) → review+
(In reply to comment #2) > (From update of attachment 439542 [details] [diff] [review]) > >- LIR_param = PTR_SIZE(LIR_iparam, LIR_qparam), > >+ LIR_param = LIR_paramp, > > There wasn't much point doing these as they'll disappear eventually, but it > doesn't hurt. yeah, my thoughts initially, but i found myself running "Find references" a lot in eclipse CDT, to find legacy alias references, and this patch reduces the false positivies. > Might as well say "Used for LIR_paramp" for LInsP, to match "Used for ... > LIR_allocp". Follies of automatic renaming. Will fix before pushing.
Summary: Rename LOpcode enums in nanojit and lirasm → Rename LOpcode enums in LIR.h
Whiteboard: fixed-in-nanojit
Target Milestone: --- → Future
Whiteboard: fixed-in-nanojit → fixed-in-nanojit, fixed-in-tracemonkey
Assignee: edwsmith → nobody
Whiteboard: fixed-in-nanojit, fixed-in-tracemonkey → fixed-in-nanojit, fixed-in-tracemonkey, fixed-in-tamarin
done using updated rename_LIR.pl from bug 504506.
Assignee: nobody → edwsmith
Attachment #439542 - Attachment is obsolete: true
Attachment #440665 - Flags: review?(nnethercote)
Attachment #440665 - Flags: review?(nnethercote) → review+
Comment on attachment 440665 [details] [diff] [review] LIR.h/cpp, Assembler.h/cpp: rename intel LIR opcode names to C names NJ: http://hg.mozilla.org/projects/nanojit-central/rev/2787af46329c
Assignee: edwsmith → nobody
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: