Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e9a2811a8b97dad042b40fa6cf1f897f50a85f6c
      
https://github.com/WebKit/WebKit/commit/e9a2811a8b97dad042b40fa6cf1f897f50a85f6c
  Author: Yijia Huang <[email protected]>
  Date:   2026-06-25 (Thu, 25 Jun 2026)

  Changed paths:
    M 
Source/JavaScriptCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    M Source/JavaScriptCore/runtime/IntlDurationFormatPrototype.cpp
    M Source/JavaScriptCore/runtime/TemporalDuration.cpp
    M Source/JavaScriptCore/runtime/TemporalDuration.h
    M Source/JavaScriptCore/runtime/TemporalDurationConstructor.cpp
    M Source/JavaScriptCore/runtime/TemporalDurationPrototype.cpp
    M Source/JavaScriptCore/runtime/TemporalInstantPrototype.cpp
    M Source/JavaScriptCore/runtime/TemporalObject.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainDatePrototype.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainDateTimePrototype.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainTimePrototype.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainYearMonthPrototype.cpp
    M Source/JavaScriptCore/runtime/TemporalZonedDateTimePrototype.cpp

  Log Message:
  -----------
  [JSC][Temporal] Polish Duration converters, accessors, and arithmetic
https://bugs.webkit.org/show_bug.cgi?id=317792
rdar://180562156

Reviewed by Sosuke Suzuki.

Pre-existing entry points had naming inconsistencies and dead spec links:
fromDurationLike (no spec name), toISO8601Duration / toLimitedDuration
(linked to sec-temporal-tolimitedtemporalduration, an abstract op removed
from the current spec). Per-unit getters duplicated boilerplate;
addDurations took a runtime AddOrSubtract tag where every callsite passes
a constant.

This patch consolidates to two entry points: ToTemporalDuration (raw
record) and ToTemporalPartialDurationRecord (shared by the object branch
and Duration.prototype.with). AddDurations becomes a template member
function with `if constexpr` operation tag, DCEing the unused branch.
The per-unit getters collapse into one macro applied via
JSC_TEMPORAL_UNITS.

Canonical link: https://commits.webkit.org/315844@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to