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

  Changed paths:
    M Source/JavaScriptCore/runtime/TemporalCalendar.cpp
    M Source/JavaScriptCore/runtime/TemporalDuration.cpp
    M Source/JavaScriptCore/runtime/TemporalDuration.h
    M Source/JavaScriptCore/runtime/TemporalInstant.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainDate.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainDate.h
    M Source/JavaScriptCore/runtime/TemporalPlainDateTime.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainDateTime.h
    M Source/JavaScriptCore/runtime/TemporalPlainMonthDay.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainMonthDay.h
    M Source/JavaScriptCore/runtime/TemporalPlainTime.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainYearMonth.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainYearMonth.h
    M Source/JavaScriptCore/runtime/TemporalZonedDateTimePrototype.cpp

  Log Message:
  -----------
  [JSC][Temporal] Remove one-line TemporalCore delegate wrappers
https://bugs.webkit.org/show_bug.cgi?id=316456
rdar://178853392

Reviewed by Yusuke Suzuki.

Remove thin wrapper functions that did nothing but forward to
TemporalCore:: or ISO8601:: functions with no added logic:

- TemporalDuration::toInternalDuration and temporalDurationFromInternal
  were static class methods that just called the identically-named
  TemporalCore:: free functions. Remove both and update all callers
  (10 sites across TemporalDuration, TemporalCalendar, TemporalInstant,
  TemporalPlainDate, and TemporalPlainTime) to call TemporalCore::
  directly.

- The file-scope getUTCEpochNanoseconds(tuple<PlainDate, PlainTime>)
  in TemporalDuration.cpp unwrapped the tuple and forwarded to
  TemporalCore::getUTCEpochNanoseconds(PlainDate, PlainTime). Remove
  it and pass the two arguments directly at call sites, eliminating
  the combineISODateAndTimeRecord + tuple-unpack roundtrip.

- monthCode, dayOfWeek, dayOfYear, weekOfYear, and yearOfWeek on
  TemporalPlainDate, TemporalPlainDateTime, TemporalPlainYearMonth,
  and TemporalPlainMonthDay were single-line ISO8601:: delegates
  defined in .cpp files. Move them inline into the class definitions
  in the headers.

No behavioral changes.

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



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

Reply via email to