Closed Bug 860050 Opened 11 years ago Closed 11 years ago

Remove non-namespaced JSHandle names

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: terrence, Unassigned)

References

Details

Attachments

(9 files)

These are for legacy C compatibility. I expect this is thoroughly rotted by now. If anyone needs them later, they can easily re-add them in the c-api wrapper's header.
This patch was generated by running the following two command:
find js/ -name "*.cpp" -or -name "*.h" | xargs sed -i 's/JSRawObject /JSObject */g'
find . -name "*.cpp" -or -name "*.h" | xargs sed -i 's/JSRawObject/JSObject*/g'

Ack confirms that there are no more references. A follow-up removes the definition and the one place where the above simple script does not work.
Attachment #738075 - Flags: review?(jcoppeard)
I will fold this with the first before pushing.

Try run is green:
https://tbpl.mozilla.org/?tree=Try&rev=58c10c995baa
Attachment #738076 - Flags: review?(jcoppeard)
Removed manually since there were only 5 occurrences.
Attachment #738186 - Flags: review?(jcoppeard)
Attached patch JSRaw*; 1of1; v0Splinter Review
Trivial: the rest of the JSRaw have no uses.
Attachment #738187 - Flags: review?(jcoppeard)
Attachment #738200 - Flags: review?(jcoppeard)
Attachment #738201 - Flags: review?(jcoppeard)
Generated with the script:
> find js/src/jsapi-tests/ -name "*.cpp" | xargs sed -i 's/JSMutableHandleObject/JS::MutableHandleObject/g'
> find js/ -name "*.py" -or -name "*.h" | xargs sed -i 's/JSMutableHandleObject/JS::MutableHandleObject/g'
> find js/ -name "*.cpp" | xargs sed -i 's/JSMutableHandleObject/MutableHandleObject/g'
Attachment #738247 - Flags: review?(jcoppeard)
Remove JSMutableHandleObject typedef manually rather than complicating the script. Will fold before pushing.
Attachment #738250 - Flags: review?(jcoppeard)
This is the browser portion of the name change. It was generated with the following command:
> find . -name "*.py" -or -name "*.h" -or -name "*.cpp" | xargs sed -i 's/JSMutableHandleObject/JS::MutableHandle<JSObject*>/g'
Attachment #738251 - Flags: review?(bzbarsky)
Comment on attachment 738251 [details] [diff] [review]
JSMutableHandleObject; 3of3; v0

r=me
Attachment #738251 - Flags: review?(bzbarsky) → review+
Attachment #738075 - Flags: review?(jcoppeard) → review+
Attachment #738076 - Flags: review?(jcoppeard) → review+
Attachment #738186 - Flags: review?(jcoppeard) → review+
Attachment #738187 - Flags: review?(jcoppeard) → review+
Attachment #738200 - Flags: review?(jcoppeard) → review+
Attachment #738201 - Flags: review?(jcoppeard) → review+
Attachment #738247 - Flags: review?(jcoppeard) → review+
Attachment #738250 - Flags: review?(jcoppeard) → review+
Any more to do here?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: