Closed
Bug 882468
Opened 11 years ago
Closed 11 years ago
Simplify BooleanGetPrimitiveValue
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: till, Assigned: till)
References
Details
Attachments
(2 files)
8.33 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
2.52 KB,
patch
|
evilpie
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
This is even simpler than the version I gisted earlier, in that it makes the entire call path infallible. Given how much simpler this is than what we currently have, I don't think the fact that we have to know about the input being a CCW matters too much.
Attachment #761763 -
Flags: review?(jwalden+bmo)
Comment 2•11 years ago
|
||
Comment on attachment 761763 [details] [diff] [review] Simplify BooleanGetPrimitiveValue Review of attachment 761763 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/jsbool.h @@ +25,1 @@ > BooleanGetPrimitiveValue(JSContext *cx, HandleObject obj, Value *vp); Make this return the boolean value directly, rather than by outparam. (And put the context at the end to indicate infallibility.)
Attachment #761763 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Thanks! https://hg.mozilla.org/integration/mozilla-inbound/rev/2f6babcfa00e
Comment 4•11 years ago
|
||
On my Linux box I get three regtest failures because of this: ecma_5/JSON/stringify-boxed-primitives.js ecma_5/JSON/stringify.js ecma_5/JSON/stringify-primitives.js In all three cases the cause is the same: Assertion failure: wrappedBool->isCrossCompartmentWrapper(), at /home/njn/moz/mi8/js/src/jsbool.cpp:205
Assignee | ||
Comment 5•11 years ago
|
||
How did I not see this?
Attachment #764665 -
Flags: review?(evilpies)
Comment 6•11 years ago
|
||
Comment on attachment 764665 [details] [diff] [review] Fix bustage caused by simplifying BooleanGetPrimitiveValue. Review of attachment 764665 [details] [diff] [review]: ----------------------------------------------------------------- :)
Attachment #764665 -
Flags: review?(evilpies) → review+
Assignee | ||
Comment 7•11 years ago
|
||
So, this was actually backed out (https://hg.mozilla.org/integration/mozilla-inbound/rev/4703321564be), so I folded the two patches into one and relanded: https://hg.mozilla.org/integration/mozilla-inbound/rev/03c829d7d4e7
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/03c829d7d4e7
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•