Commit e42eed12 authored by Frank Tang's avatar Frank Tang Committed by V8 LUCI CQ

[Temporal] Sync to PR 2385

Changes in preparation for incorporating IETF draft
https://github.com/tc39/proposal-temporal/pull/2385

The changes in this CL is needed to implement
https://chromium-review.googlesource.com/c/v8/v8/+/3901196
and several other PR just agreed on TC39

Rename DateRecord => DateRecordWithCalendar
Rename TimeRecord => TimeRecordWithCalendar
Rename DateTimeRecord => DateTimeRecordWithCalendar
Rename DateRecordCommon => DateRecord
Rename TimeRecordCommon => TimeRecord
Rename DateTimeRecordCommon => DateTimeRecord

Bug: v8:11544
Change-Id: I77397363569c15320154fe0b226036f8d6df74a3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3893552Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83375}
parent 56816d76
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -1051,13 +1051,13 @@ class JSTemporalZonedDateTime
namespace temporal {
struct DateRecordCommon {
struct DateRecord {
int32_t year;
int32_t month;
int32_t day;
};
struct TimeRecordCommon {
struct TimeRecord {
int32_t hour;
int32_t minute;
int32_t second;
......@@ -1066,14 +1066,14 @@ struct TimeRecordCommon {
int32_t nanosecond;
};
struct DateTimeRecordCommon {
DateRecordCommon date;
TimeRecordCommon time;
struct DateTimeRecord {
DateRecord date;
TimeRecord time;
};
// #sec-temporal-createtemporaldatetime
V8_WARN_UNUSED_RESULT MaybeHandle<JSTemporalPlainDateTime>
CreateTemporalDateTime(Isolate* isolate, const DateTimeRecordCommon& date_time,
CreateTemporalDateTime(Isolate* isolate, const DateTimeRecord& date_time,
Handle<JSReceiver> calendar);
// #sec-temporal-createtemporaltimezone
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment