Closed
Bug 1091900
Opened 11 years ago
Closed 11 years ago
Cleanup jsiter
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: evilpies, Assigned: evilpies)
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•11 years ago
|
||
We should not be adding new iteratorObject uses anyway. @@iterator all the way.
| Assignee | ||
Comment 2•11 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•11 years ago
|
Attachment #8514628 -
Flags: review?(kvijayan)
| Assignee | ||
Updated•11 years ago
|
Attachment #8514618 -
Flags: review?(jorendorff)
| Assignee | ||
Updated•11 years ago
|
Attachment #8514628 -
Flags: review?(kvijayan) → review?(jdemooij)
Comment 3•11 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•11 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•11 years ago
|
Keywords: leave-open
| Assignee | ||
Comment 5•11 years ago
|
||
| Assignee | ||
Comment 6•11 years ago
|
||
Fixed build bustage: https://hg.mozilla.org/integration/mozilla-inbound/rev/50b67052e480
Comment 7•11 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•11 years ago
|
||
| Assignee | ||
Comment 9•11 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•11 years ago
|
||
Attachment #8519408 -
Attachment is obsolete: true
Attachment #8519408 -
Flags: review?(jorendorff)
Attachment #8519409 -
Flags: review?(jorendorff)
| Assignee | ||
Comment 11•11 years ago
|
||
I think the only use in CrossCompartmentWrapper could use EnumeratedIdVectorToIterator.
| Assignee | ||
Updated•11 years ago
|
Attachment #8519411 -
Flags: review?(jorendorff)
Comment 12•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Attachment #8519409 -
Flags: review?(jorendorff) → review?(efaustbmo)
| Assignee | ||
Updated•11 years ago
|
Attachment #8519411 -
Flags: review?(jorendorff) → review?(efaustbmo)
| Assignee | ||
Comment 13•11 years ago
|
||
Attachment #8522466 -
Flags: review?(efaustbmo)
| Assignee | ||
Comment 14•11 years ago
|
||
Attachment #8522466 -
Attachment is obsolete: true
Attachment #8522466 -
Flags: review?(efaustbmo)
Attachment #8523171 -
Flags: review?(efaustbmo)
Comment 15•11 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•11 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•11 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•11 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•11 years ago
|
||
Comment 20•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 21•8 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
•