Closed Bug 579937 Opened 14 years ago Closed 14 years ago

treehydra_startup assertion incorrect after fatvals

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ehren.m, Assigned: ehren.m)

Details

Attachments

(1 file, 3 obsolete files)

Attached patch patch (obsolete) — Splinter Review
I'm not quite sure what the point of this assertion in that I don't see any conversions from void* to jsval or anything that makes assumptions about the size of a jsval. Tests pass with tracemonkey after this change.

The JSVAL_(TRUE|FALSE) changes silence a couple of overflow in implicit conversion warnings.
Attachment #458370 - Flags: review?(tglek)
Attached patch patch v2 (obsolete) — Splinter Review
missed a JSVAL_TRUE -> JS_TRUE
Attachment #458370 - Attachment is obsolete: true
Attachment #458383 - Flags: review?(tglek)
Attachment #458370 - Flags: review?(tglek)
JSVAL_(TRUE,FALSE) are completely different values than JS_(TRUE,FALSE).  The former are tagged values and thus will always look "true".  I'm surprised these were assertions and not compile errors.  Are you compiling without DEBUG?  In DEBUG builds, I made jsval and jsid struct types so these errors would be caught at compile time.
No longer blocks: fatvals
Comment on attachment 458383 [details] [diff] [review]
patch v2

I'm compiling tm with DEBUG. struct -> int should be an error... odd. Either way, after talking to Taras, there's a lot more to fix (building on 64 bit ftl).
Attachment #458383 - Flags: review?(tglek)
Attached patch fatvals patch (obsolete) — Splinter Review
I'm breaking any spidermonkey rev. between the rooting changes and fatvals with this btw (about a month of check ins). Works on 32/64 bit with 4.5 or 4.3.
Attachment #458383 - Attachment is obsolete: true
Attachment #462467 - Flags: review?(tglek)
Comment on attachment 462467 [details] [diff] [review]
fatvals patch

Cool, that's exactly what I wanted. Need some sort of an ifdef #error or a configure check for old spidermonkeys.
Attachment #462467 - Flags: review?(tglek) → review+
Attached patch fatval patchSplinter Review
this will still work with older spidermonkeys (I fixed a couple of nits though)
Attachment #462467 - Attachment is obsolete: true
Attachment #463298 - Flags: review+
http://hg.mozilla.org/rewriting-and-analysis/dehydra/rev/fd66b553a16c
Assignee: nobody → ehren.m
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: