Closed Bug 1009335 Opened 12 years ago Closed 12 years ago

PJS: Propagate errors from ParallelSafetyAnalysis when compiling OMT

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: shu, Assigned: shu)

Details

Attachments

(1 file, 1 obsolete file)

When compiling OMT, errors from ParallelSafetyAnalysis get swallowed, so we end up trying to compile failed scripts over and over.
Assignee: nobody → shu
Status: NEW → ASSIGNED
Comment on attachment 8421446 [details] [diff] [review] Propagate errors from ParallelSafetyAnalysis when compiling off main thread. Review of attachment 8421446 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, but I'd like to see a new patch as the comments below will require a fair amount of this to be restructured. ::: js/src/jit/Ion.cpp @@ +1360,5 @@ > if (graph.entryBlock()->info().executionMode() == ParallelExecution) { > AutoTraceLog log(logger, TraceLogger::ParallelSafetyAnalysis); > + // Compilation of PJS kernels only happens with IonBuilders. > + MOZ_ASSERT(!mir->compilingAsmJS()); > + ParallelSafetyAnalysis analysis(*reinterpret_cast<IonBuilder *>(mir), graph); Hmm, can you move abortReason_ from IonBuilder to MIRGenerator to avoid this cast? ::: js/src/jit/ParallelSafetyAnalysis.cpp @@ +387,5 @@ > + > + // Set the abort reason on the top IonBuilder disable, so > + // that we may propagate the error correctly in case we > + // are being compiled off-thread. > + return builder_.topIonBuilder().disable(); The MIR generator passed in will be the top IonBuilder (the builders for inlined frames only ever exist on the stack, anyhow), so there's no need to walk the parents here.
Attachment #8421446 - Flags: review?(bhackett1024)
Applied comments.
Attachment #8422107 - Flags: review?(bhackett1024)
Attachment #8421446 - Attachment is obsolete: true
Attachment #8422107 - Flags: review?(bhackett1024) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: