Closed
Bug 569114
Opened 15 years ago
Closed 15 years ago
TM: don't use tinyids in jsxml.cpp
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: gal, Assigned: gal)
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
|
19.39 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
It leaks all over the place. XMLNamespace[-2] and such. Also, remove settings caching code for reduced complexity and fewer setters/getters. We don't care that much about performance here.
| Assignee | ||
Comment 1•15 years ago
|
||
Assignee: general → gal
| Assignee | ||
Updated•15 years ago
|
Attachment #448256 -
Flags: review?(jorendorff)
Comment 2•15 years ago
|
||
Comment on attachment 448256 [details] [diff] [review]
patch
>+DEFINE_GETTER(QName,NameURI,*vp = (*vp == JSVAL_VOID) ? JSVAL_NULL : *vp)
Should be, `if (JSVAL_IS_VOID(*vp)) *vp = JSVAL_NULL;`
Attachment #448256 -
Flags: review?(jorendorff) → review+
| Assignee | ||
Comment 3•15 years ago
|
||
Whiteboard: fixed-in-tracemonkey
Comment 4•15 years ago
|
||
(In reply to comment #3)
> http://hg.mozilla.org/tracemonkey/rev/4cf7355a09d4
I object to abusing ?: for if-then. All the lines like this one:
+ *vp = (obj->getClass() == &js_QNameClass.base) ? obj->getQNameLocalName() : *vp)
should use
+ if (obj->getClass() == &js_QNameClass.base)
+ *vp = obj->getQNameLocalName();
instead.
Macros taking "code" formals that must be statements should not wrap in unnecessary braces and add ; at the end -- make the caller pass the whole statement in. Otherwise there's at least a warning hazard for any future caller who passes in a trailing ; and thus makes ;;.
rs=me on followup to fix this.
/be
Comment 5•15 years ago
|
||
This test has been failing on the TM tinderbox for three days:
REFTEST TEST-UNEXPECTED-PASS | file:///builds/slave/tracemonkey-linux-opt-unittest-jsreftest/build/jsreftest/tests/jsreftest.html?test=e4x/Expressions/11.1.4-04.js | Section 1 of test - 11.1.4 - XML Initializer - Comment hiding parsing/scanning item 1
seems like it might be a good thing, but check it out.
| Assignee | ||
Comment 6•15 years ago
|
||
host-5-104:tests gal$ python jstests.py ../Darwin_DBG.OBJ/js 11.1.4-04.js
[ 1| 0| 0] 100% ===============================================>| 0.1s
PASS
host-5-104:tests gal$
I saw this yesterday and tried to reproduce but no luck. I wonder whats up there.
| Assignee | ||
Comment 7•15 years ago
|
||
Maybe the config handling I changed somehow affects this and the browser does some stuff to the xml config?
Comment 8•15 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/4cf7355a09d4
Update jstests.list to get rid of some more orange: remove the "fails-if" tag from a test that no longer fails. My best guess is that the seemingly trivial simplification in bug 569114 fixed an actual browser-only correctness bug. Amazing. shame=andreas, rs=Waldo, no bug#.
Comment 9•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•