Closed Bug 1844528 Opened 2 years ago Closed 2 years ago

Change ErrorReporter::isOnThisLine to use std::optional instead of an out parameter

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This positively impacts code generation under -ftrivial-auto-var-init as this make it possible for the compiler to understand it does not need to initialize the out parameter.

Interestingly this also leads to better code generation.

This positively impacts code generation under -ftrivial-auto-var-init as
this make it possible for the compiler to understand it does not need to
initialize the out parameter.

Severity: -- → N/A
Priority: -- → P1
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0dabbb6c3aec Change ErrorReporter::isOnThisLine to use std::optional instead of an out parameter r=arai
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: