Closed Bug 693712 Opened 14 years ago Closed 14 years ago

SpiderMonkey dtrace build breakage

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla10

People

(Reporter: sfink, Assigned: sfink)

Details

Attachments

(2 files, 1 obsolete file)

Attached patch Header juggling (obsolete) — Splinter Review
jsprobes.h uses JSObject and JSScript when compiling with --enable-dtrace, so it needs to include the appropriate headers.
Attachment #566279 - Flags: review?(luke)
Assignee: general → sphink
I think this is going to be a problem, since jsprobes.h is in INSTALLED_HEADERS and jsobj.h is not.
...although it looks like we can remove jsprobes.h from INSTALLED_HEADERS!
Attached patch Header jugglingSplinter Review
Oh, I put jsprobes.h in INSTALLED_HEADERS? Ugh. I guess that was before I knew better. I'd actually like to create something someday that *would* go into INSTALLED_HEADERS, but jsprobes.h in its current form is not that.
Attachment #566279 - Attachment is obsolete: true
Attachment #566279 - Flags: review?(luke)
Attachment #566285 - Flags: review?(wmccloskey)
Attachment #566285 - Flags: review?(wmccloskey) → review+
Misusing this bug for further followup problems in SM builds. This patch fixes 2 problems: (1) a warning where I initialize class members out of order, and (2) an error where I use mjit:: stuff when --disable-methodjit is on.
Attachment #566302 - Flags: review?(wmccloskey)
Comment on attachment 566302 [details] [diff] [review] Fix other SM build problems Thanks! By the way, it's outside the scope of this bug, but I noticed that jsprobes.h uses different capitalization than the rest of SM. I think normally it would be probes::DiscardExecutableRegion, rather than Probes::discardExecutableRegion (lowercase for namespaces and uppercase for top-level functions).
Attachment #566302 - Flags: review?(wmccloskey) → review+
(In reply to Bill McCloskey (:billm) from comment #5) > Comment on attachment 566302 [details] [diff] [review] [diff] [details] [review] > Fix other SM build problems > > By the way, it's outside the scope of this bug, but I noticed that > jsprobes.h uses different capitalization than the rest of SM. I think > normally it would be probes::DiscardExecutableRegion, rather than > Probes::discardExecutableRegion (lowercase for namespaces and uppercase for > top-level functions). Yeah, you're right. I should fix that. Everything used to be in a js::Probes class, and I should've switched Probes::stuff to probes::Stuff at the same time.
(In reply to Steve Fink [:sfink] from comment #6) > (In reply to Bill McCloskey (:billm) from comment #5) > > Comment on attachment 566302 [details] [diff] [review] [diff] [details] [review] [diff] [details] [review] > > Fix other SM build problems > > > > By the way, it's outside the scope of this bug, but I noticed that > > jsprobes.h uses different capitalization than the rest of SM. I think > > normally it would be probes::DiscardExecutableRegion, rather than > > Probes::discardExecutableRegion (lowercase for namespaces and uppercase for > > top-level functions). > > Yeah, you're right. I should fix that. Everything used to be in a js::Probes > class, and I should've switched Probes::stuff to probes::Stuff at the same > time. Filed bug 693838
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla10
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: