Closed Bug 620452 Opened 14 years ago Closed 13 years ago

jsemit.cpp compile failure when #undef JS_HAS_SHARP_VARS

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: andrew, Assigned: andrew)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch Define sharpnum always (obsolete) — Splinter Review
The definition of the EmitNewInit() static function in jsemit.cpp always has a "sharpnum" argument. This function is called 3 times within the file outside of JS_HAS_SHARP_VARS checks passing the "sharpnum" variable. This variable is only defined when JS_HAS_SHARP_VARS is defined, thus breaking the build.

The attached patch simply always defines the variable since it is always passed to EmitNewInit(). I assume this is preferred over putting the definition of EmitNewInit() as well as all the callers inside #ifdefs.
Attachment #498776 - Flags: review?(mrbkap)
Attachment #498776 - Flags: review?(mrbkap) → review+
Attached patch Define sharpnum always (obsolete) — Splinter Review
Revisiting old bugs, rebased patch to mozilla-inbound.
Attachment #498776 - Attachment is obsolete: true
Attachment #569267 - Flags: review?(mrbkap)
Attachment #569267 - Flags: review?(mrbkap) → review+
Keywords: checkin-needed
Assignee: general → andrew
{
applying thg-import-agrin7.patch
unable to find 'js/src/frontend/BytecodeGenerator.cpp' for patching
1 out of 1 hunks FAILED -- saving rejects to file js/src/frontend/BytecodeGenerator.cpp.rej
}
Keywords: checkin-needed
Ed, this checkin failed? Were you applying the patch to mozilla-inbound?
Yeah sorry meant to put was applying to inbound.
Thanks :-)
Updated patch to apply clean to m-i.
Attachment #569267 - Attachment is obsolete: true
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/215ba0c3d5b7
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: