Closed
Bug 622503
Opened 14 years ago
Closed 14 years ago
Build failure when JS_TRACER is not defined
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: florian, Assigned: eric.hennigan)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(3 files, 4 obsolete files)
(deleted),
patch
|
gal
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
gwagner
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
build/mozilla/js/src/jscntxt.cpp: In member function 'bool JSThreadData::init()':
build/mozilla/js/src/jscntxt.cpp:505: error: 'maxCodeCacheBytes' was not declared in this scope
In jscntxt.h, maxCodeCacheBytes is declared in an #ifdef JS_TRACER, so I guess this build failure is just caused by a missing #ifdef in jscntxt.cpp.
Attachment #500761 -
Flags: review?(gal)
Assignee | ||
Comment 1•14 years ago
|
||
Assuming that Florian's patch is the correct approach there are two more stumbling blocks:
../jscompartment.cpp: In function ‘bool ScriptPoolDestroyed(JSContext*, js::mjit::JITScript*, uint32, uint32&)’:
../jscompartment.cpp:372: error: ‘ExecutablePool’ is not a member of ‘JSC’
../jscompartment.cpp:372: error: ‘pool’ was not declared in this scope
../jscompartment.cpp:372: error: invalid use of incomplete type ‘struct js::mjit::JITScript’
../jsinterp.h:106: error: forward declaration of ‘struct js::mjit::JITScript’
which can be solved with a similar patch2.diff
../jsdbgapi.cpp: In function ‘JSBool js_SetSingleStepMode(JSContext*, JSScript*, JSBool)’:
../jsdbgapi.cpp:189: error: ‘struct JSScript’ has no member named ‘singleStepMode’
../jsdbgapi.cpp: At global scope:
../jsdbgapi.cpp:120: warning: ‘void PurgeCallICs(JSContext*, JSScript*)’ defined but not used
solved with another patch3.diff
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #500920 -
Flags: review?
Assignee | ||
Comment 3•14 years ago
|
||
Comment 4•14 years ago
|
||
Comment on attachment 500761 [details] [diff] [review]
patch
JS_TRACER is enabled on all builds we ship, so disabling that line doesn't change any bits we ship => NPOTB. Feel free to land the patch.
Attachment #500761 -
Flags: review?(gal) → review-
Updated•14 years ago
|
Attachment #500761 -
Flags: review- → review+
Comment 5•14 years ago
|
||
Comment on attachment 500920 [details] [diff] [review]
patch ifdef in jscompartment
The ifdef looks unbalanced. Did you mean to put it after the }?
Comment 6•14 years ago
|
||
Comment on attachment 500921 [details] [diff] [review]
patch ifdef in jsdbgapi
Same here. NPOTB. Can land.
Attachment #500921 -
Flags: review+
Assignee | ||
Comment 7•14 years ago
|
||
(In reply to comment #5)
> Comment on attachment 500920 [details] [diff] [review]
> patch ifdef in jscompartment
>
> The ifdef looks unbalanced. Did you mean to put it after the }?
I does look that way in the patch. The ifdef surrounds the entire ScriptPoolDestroyed function, including the preamble comment.
Reporter | ||
Comment 8•14 years ago
|
||
(In reply to comment #1)
> Assuming that Florian's patch is the correct approach there are two more
> stumbling blocks:
>
> ../jscompartment.cpp: In function ‘bool ScriptPoolDestroyed(JSContext*,
> js::mjit::JITScript*, uint32, uint32&)’:
> ../jscompartment.cpp:372: error: ‘ExecutablePool’ is not a member of ‘JSC’
> ../jscompartment.cpp:372: error: ‘pool’ was not declared in this scope
> ../jscompartment.cpp:372: error: invalid use of incomplete type ‘struct
> js::mjit::JITScript’
> ../jsinterp.h:106: error: forward declaration of ‘struct js::mjit::JITScript’
>
> which can be solved with a similar patch2.diff
>
> ../jsdbgapi.cpp: In function ‘JSBool js_SetSingleStepMode(JSContext*,
> JSScript*, JSBool)’:
> ../jsdbgapi.cpp:189: error: ‘struct JSScript’ has no member named
> ‘singleStepMode’
> ../jsdbgapi.cpp: At global scope:
> ../jsdbgapi.cpp:120: warning: ‘void PurgeCallICs(JSContext*, JSScript*)’
> defined but not used
>
> solved with another patch3.diff
The patch I attached in comment 0 was enough to fix my build on PPC (yesterday at least...).
Which build configuration are you seeing this with?
Assignee | ||
Comment 9•14 years ago
|
||
(In reply to comment #8)
>
> The patch I attached in comment 0 was enough to fix my build on PPC (yesterday
> at least...).
> Which build configuration are you seeing this with?
I was seeing all three problems with changeset 59652:06351b16cca1 on a lixux 64bit system.
Updated•14 years ago
|
Assignee: general → eric.hennigan
Status: NEW → ASSIGNED
Hardware: PowerPC → All
Comment 10•14 years ago
|
||
Are attachments 500761 500921 ready to land Eric?(In reply to comment #7)
> (In reply to comment #5)
> > Comment on attachment 500920 [details] [diff] [review]
> > patch ifdef in jscompartment
> >
> > The ifdef looks unbalanced. Did you mean to put it after the }?
>
> I does look that way in the patch. The ifdef surrounds the entire
> ScriptPoolDestroyed function, including the preamble comment.
Please use "hg diff -p -U 8" in order to get more information in the changeset.
ScriptPoolDestroyed is only called with
#if defined JS_METHODJIT && defined JS_MONOIC
Let's make it consistent.
The other 2 patches are ready to land?
Assignee | ||
Comment 11•14 years ago
|
||
Attachment #500920 -
Attachment is obsolete: true
Attachment #500920 -
Flags: review?
Assignee | ||
Comment 12•14 years ago
|
||
Attachment #500921 -
Attachment is obsolete: true
Assignee | ||
Comment 13•14 years ago
|
||
(In reply to comment #10)
> ScriptPoolDestroyed is only called with
> #if defined JS_METHODJIT && defined JS_MONOIC
>
> Let's make it consistent.
>
> The other 2 patches are ready to land?
patch2.diff and patch3.diff have been extended with "-U8".
patch2.diff incorporates the JS_MONOIC change.
both are now ready to land.
Assignee | ||
Comment 14•14 years ago
|
||
Forgot to check the 'patch' box.
Assignee | ||
Comment 15•14 years ago
|
||
forgot to check the 'patch' box
Attachment #501376 -
Attachment is obsolete: true
Attachment #501377 -
Attachment is obsolete: true
Updated•14 years ago
|
Attachment #501403 -
Flags: review+
Reporter | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 16•14 years ago
|
||
Keywords: checkin-needed
Whiteboard: fixed-in-tracemonkey
Comment 17•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•