Closed Bug 795625 Opened 7 years ago Closed 7 years ago

Don't push StmtInfo for function bodies

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: ejpbruel, Unassigned)

Details

Attachments

(1 file)

As far as I can ascertain, there is no need to ever push a StmtInfo for function blocks. The only use for this in the code is to determine whether we're currently at body level, but since each function gets its own context, and each context gets it own statement stack, this is already implicit from the fact that the stack is empty.
Attachment #666232 - Flags: review?(jorendorff)
Attachment #666232 - Flags: review?(jorendorff) → review+
https://hg.mozilla.org/mozilla-central/rev/a3435a20d3ff
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.