Remove FunctionBox::isInterpretedLazy() accessor
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
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.
Assignee | ||
Comment 1•5 years ago
|
||
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.
Comment 3•5 years ago
|
||
bugherder |
Description
•