Closed Bug 556353 Opened 14 years ago Closed 14 years ago

Remove OBJ_IS_NATIVE, HAS_FUNCTION_CLASS

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: n.nethercote, Assigned: n.nethercote)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

Attached patch patchSplinter Review
More cleaning up:

- Rename lockAnd{Get,Set}Slot() as {get,set}SlotMT(), as per Brendan's
  request in bug 555631.

- Remove HAS_FUNCTION_CLASS and replace all its uses with obj->isFunction().

- Remove OBJ_IS_NATIVE and replace all its uses with obj->isNative().
Attachment #436258 - Flags: review?(gal)
Comment on attachment 436258 [details] [diff] [review]
patch

Stealing, gal won't mind I'm sure -- very pretty, glad to see BIG_UGLY_MACRO names bite the dust.

VALUE_TO_FUNCTION and GET_FUNCTION_PRIVATE need to go, in this light.

Thanks for doing this!

/be
Attachment #436258 - Flags: review?(gal) → review+
Its _always_ ok to steal from me =)
(In reply to comment #1)
> VALUE_TO_FUNCTION and GET_FUNCTION_PRIVATE need to go, in this light.

Yes, and 101 other ones like it.  I'll get there, I just like doing it in chunks -- it gives fewer difficulties when updating, it's easier for reviewers, and easier to work out problems if something goes wrong (just ask Waldo, cough *bug 548702* cough).

> Thanks for doing this!

No problem.  I actually don't mind doing this kind of stuff.
http://hg.mozilla.org/tracemonkey/rev/fd93131c3bb9
Whiteboard: fixed-in-tracemonkey
http://hg.mozilla.org/mozilla-central/rev/fd93131c3bb9
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: