Closed Bug 1849319 Opened 1 year ago Closed 1 year ago

Remove SrcNoteType::Null

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: arai, Assigned: arai)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The end of source notes is always known and there's no need to use dedicate type for terminator.

actually, this was wrong. the end of source notes pointed by ImmutableScriptData::noteLength includes the padding, which is filled by Null.
So we still need some kind of padding byte, while we could remove a case where whole 32-bits are filled by padding if there's other way to fill the padding.

XDelta with 0 could be used as padding.

Use SrcNoteType::XDelta with ext-delta == 0 as terminator instead.
Also remove the 4-bytes padding at the end of source notes array.

Depends on D186917

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: