Closed Bug 1618606 Opened 5 years ago Closed 5 years ago

Remove FunctionBox::isInterpretedLazy() accessor

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

Details

Attachments

(1 file)

In Bug 1591600 we will eliminate the INTERPRETED_LAZY flag from functions. In order to do this, we should cleanup uses of it within frontend::FunctionBox.

This patch instead adds a FunctionBox::emitBytecode flag to indicate to the BCE whether the current function box should be emitted with bytecode or in lazy form.

Note that this definition is slightly different than the FunctionBox::isInterpretedLazy() was. In particular, placeholder function boxes for existing functions will not set the flag. It is only used when we expect the FunctionEmitter to actually generated bytecode.

Avoid using the INTERPRETED_LAZY flag to control the BytecodeEmitter by
instead adding an emitBytecode flag to FunctionBox. This flag is set for
function boxes that we desire the BCE to emit code for. This paves the way to
remove the INTERPRETED_LAZY bit from functions themselves.

Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8687d8eff23b Remove FunctionBox::isInterpretedLazy() accessor. r=mgaudet
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: