Closed
Bug 1091900
Opened 10 years ago
Closed 10 years ago
Cleanup jsiter
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: evilpie, Assigned: evilpie)
References
Details
Attachments
(5 files, 2 obsolete files)
22.44 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
55.10 KB,
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
14.36 KB,
patch
|
efaust
:
review+
|
Details | Diff | Splinter Review |
4.30 KB,
patch
|
efaust
:
review+
|
Details | Diff | Splinter Review |
43.51 KB,
patch
|
efaust
:
review+
|
Details | Diff | Splinter Review |
There is some room for improvements.
Assignee | ||
Comment 1•10 years ago
|
||
We should not be adding new iteratorObject uses anyway. @@iterator all the way.
Assignee | ||
Comment 2•10 years ago
|
||
It's almost disturbing how hard it is figure out the right includes. And how much is leaked from random headers.
Assignee | ||
Updated•10 years ago
|
Attachment #8514628 -
Flags: review?(kvijayan)
Assignee | ||
Updated•10 years ago
|
Attachment #8514618 -
Flags: review?(jorendorff)
Assignee | ||
Updated•10 years ago
|
Attachment #8514628 -
Flags: review?(kvijayan) → review?(jdemooij)
Comment 3•10 years ago
|
||
Comment on attachment 8514628 [details] [diff] [review] Move ForOfIterator to its own file Review of attachment 8514628 [details] [diff] [review]: ----------------------------------------------------------------- Nice :)
Attachment #8514628 -
Flags: review?(jdemooij) → review+
Comment 4•10 years ago
|
||
Comment on attachment 8514618 [details] [diff] [review] Remove iteratorObject hook Review of attachment 8514618 [details] [diff] [review]: ----------------------------------------------------------------- Very nice work. I love it.
Attachment #8514618 -
Flags: review?(jorendorff) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: leave-open
Assignee | ||
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/dc265cc31095
Assignee | ||
Comment 6•10 years ago
|
||
Fixed build bustage: https://hg.mozilla.org/integration/mozilla-inbound/rev/50b67052e480
Comment 7•10 years ago
|
||
sorry had to back this out in https://treeherder.mozilla.org/ui/#/jobs?repo=mozilla-inbound&revision=dc265cc31095 since one of this changes caused i guess https://treeherder.mozilla.org/ui/logviewer.html#?job_id=3630077&repo=mozilla-inbound
Assignee | ||
Comment 8•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/92d4cb1178bd https://hg.mozilla.org/integration/mozilla-inbound/rev/e368632d6840
Assignee | ||
Comment 9•10 years ago
|
||
This introduce a function to explicitly create an empty property iterator, as required (by our implementation) for (for .. in).
Attachment #8519408 -
Flags: review?(jorendorff)
Assignee | ||
Comment 10•10 years ago
|
||
Attachment #8519408 -
Attachment is obsolete: true
Attachment #8519408 -
Flags: review?(jorendorff)
Attachment #8519409 -
Flags: review?(jorendorff)
Assignee | ||
Comment 11•10 years ago
|
||
I think the only use in CrossCompartmentWrapper could use EnumeratedIdVectorToIterator.
Assignee | ||
Updated•10 years ago
|
Attachment #8519411 -
Flags: review?(jorendorff)
Comment 12•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/92d4cb1178bd https://hg.mozilla.org/mozilla-central/rev/e368632d6840
Assignee | ||
Updated•10 years ago
|
Attachment #8519409 -
Flags: review?(jorendorff) → review?(efaustbmo)
Assignee | ||
Updated•10 years ago
|
Attachment #8519411 -
Flags: review?(jorendorff) → review?(efaustbmo)
Assignee | ||
Comment 14•10 years ago
|
||
Attachment #8522466 -
Attachment is obsolete: true
Attachment #8522466 -
Flags: review?(efaustbmo)
Attachment #8523171 -
Flags: review?(efaustbmo)
Comment 15•10 years ago
|
||
Comment on attachment 8523171 [details] [diff] [review] Change various outparams to MutableHandleObject Review of attachment 8523171 [details] [diff] [review]: ----------------------------------------------------------------- r=me with comment addressed. ::: dom/base/nsGlobalWindow.cpp @@ +940,5 @@ > return false; > } > return js::AppendUnique(cx, props, innerProps); > } > nit: new second empty line ::: js/src/proxy/Proxy.cpp @@ -389,4 @@ > { > JS_CHECK_RECURSION(cx, return false); > const BaseProxyHandler *handler = proxy->as<ProxyObject>().handler(); > - vp.setUndefined(); // default result if we refuse to perform this action I think this is still needed, no? What if policy.returnValue() is |false|, then what is projected out in objp? Can't we replace this with |objp.set(nullptr)|?
Attachment #8523171 -
Flags: review?(efaustbmo) → review+
Comment 16•10 years ago
|
||
Comment on attachment 8519411 [details] [diff] [review] Make VectorTo*Iterator local Review of attachment 8519411 [details] [diff] [review]: ----------------------------------------------------------------- APPROVED.
Attachment #8519411 -
Flags: review?(efaustbmo) → review+
Comment 17•10 years ago
|
||
Comment on attachment 8519409 [details] [diff] [review] empty-iterator Review of attachment 8519409 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. A nice refactor.
Attachment #8519409 -
Flags: review?(efaustbmo) → review+
Assignee | ||
Comment 18•10 years ago
|
||
Comment on attachment 8523171 [details] [diff] [review] Change various outparams to MutableHandleObject Review of attachment 8523171 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/proxy/Proxy.cpp @@ -389,4 @@ > { > JS_CHECK_RECURSION(cx, return false); > const BaseProxyHandler *handler = proxy->as<ProxyObject>().handler(); > - vp.setUndefined(); // default result if we refuse to perform this action In theory we shouldn't touch the out value in that error case, but it can't hurt to do either.
Assignee | ||
Comment 19•10 years ago
|
||
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=633052c58bac https://hg.mozilla.org/integration/mozilla-inbound/rev/8a1582c375c2 https://hg.mozilla.org/integration/mozilla-inbound/rev/22179ebb537b https://hg.mozilla.org/integration/mozilla-inbound/rev/14a34e921e1b
Comment 20•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8a1582c375c2 https://hg.mozilla.org/mozilla-central/rev/22179ebb537b https://hg.mozilla.org/mozilla-central/rev/14a34e921e1b
Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 21•7 years ago
|
||
Removing leave-open keyword from resolved bugs, per :sylvestre.
Keywords: leave-open
You need to log in
before you can comment on or make changes to this bug.
Description
•