Closed Bug 714079 Opened 13 years ago Closed 8 years ago

Remove defineGeneric

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: evilpie, Unassigned)

References

Details

Attachments

(1 file, 3 obsolete files)

      No description provided.
Assignee: general → evilpies
Blocks: 586842
Status: NEW → ASSIGNED
Attached patch WIP (obsolete) — Splinter Review
Attached patch WIP (obsolete) — Splinter Review
real patch this time
Attachment #584837 - Attachment is obsolete: true
Attached patch v1 (obsolete) — Splinter Review
There are some things, in the patch that are very dirty, but until we have some kind of sane API that we can call in all the weird cases, this is probably the most sane solution.

Try results should be posted here. \o/
Attachment #584838 - Attachment is obsolete: true
Attachment #584877 - Flags: review?(jwalden+bmo)
Try run for 54930bf1e0d3 is complete.
Detailed breakdown of the results available here:
    https://tbpl.mozilla.org/?tree=Try&rev=54930bf1e0d3
Results (out of 271 total builds):
    success: 235
    warnings: 34
    failure: 2
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/evilpies@gmail.com-54930bf1e0d3
Attached patch v2Splinter Review
So I was able to make two mistakes in one line of code.

>if (JS_DefinePropertyById(cx, obj, shape->propid(), v, getter, setter, attrs))
Yep.
Attachment #584877 - Attachment is obsolete: true
Attachment #584877 - Flags: review?(jwalden+bmo)
Attachment #585029 - Flags: review?(jwalden+bmo)
Comment on attachment 585029 [details] [diff] [review]
v2

>diff --git a/js/src/jsclass.h b/js/src/jsclass.h
>--- a/js/src/jsclass.h
>+++ b/js/src/jsclass.h
>@@ -1,8 +1,9 @@
>+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
> /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-

Ahem.
Comment on attachment 585029 [details] [diff] [review]
v2

Review of attachment 585029 [details] [diff] [review]:
-----------------------------------------------------------------

I think this wants to go the defineByValue direction, along the lines that deleteByValue just went.  Note that not all jsids are Values, so use IdToValue(id) passed to defineByValue carefully (see the last comment in bug 713965).

You should make sure the browser builds with this patch; I think you need to remove some NULLs from JSCLASS_NO_OPTIONAL_MEMBERS (?, memory hazy on the name -- it's in jsclass.h, easy enough to find).
Attachment #585029 - Flags: review?(jwalden+bmo)
I am not going to work on this in the near future.
Status: ASSIGNED → NEW
Assignee: evilpies → general
Assignee: general → nobody
All gone in https://hg.mozilla.org/mozilla-central/rev/f1ac9100750e, resolving as WFM.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: