Closed Bug 1121434 Opened 10 years ago Closed 10 years ago

Get rid of or simplify executionMode

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: lth, Assigned: shu)

References

Details

Attachments

(1 file)

The Parallel execution mode is already gone, but that removal probably opens up for further simplifications. This is tied into VMFunction also.
I think ExecutionMode is fine as is so long as we try to confine it to jit/.
(In reply to Shu-yu Guo [:shu] from comment #1) > I think ExecutionMode is fine as is so long as we try to confine it to jit/. Yeah, some analyses use IonBuilder and have their own ExecutionModes atm. It seems like we could remove all uses outside the compiler though (and also from codegen and most optimization passes).
Attachment #8549295 - Flags: review?(jdemooij)
Comment on attachment 8549295 [details] [diff] [review] Rename ExecutionMode to AnalysisMode. Review of attachment 8549295 [details] [diff] [review]: ----------------------------------------------------------------- Nice, thanks. ::: js/src/jsinfer.h @@ +1573,3 @@ > > public: > + static const uint32_t INVALID_SWEEP_INDEX = (1 << 30) - 1; This should be (1u << 31) - 1 (max value that fits in 31 bits). 1u to avoid sign bit trouble. @@ +1579,4 @@ > pendingInvalidation_(false), sweepIndex_(INVALID_SWEEP_INDEX) > {} > > + CompilerOutput(JSScript *script) The constructor should be `explicit` now.
Attachment #8549295 - Flags: review?(jdemooij) → review+
Assignee: nobody → shu
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: