/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_date_test.cpp | 53 JSDate *JSDateCreate(JSThread *thread) in JSDateCreate() 59 JSHandle<JSDate> dateObject = in JSDateCreate() 60 …JSHandle<JSDate>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(dateFunction), dateF… in JSDateCreate() 67 JSHandle<JSDate> jsDate(thread, JSDateCreate(thread)); in HWTEST_F_L0() 69 EXPECT_EQ(jsDate->GetLocalOffset(), JSTaggedValue(JSDate::MAX_DOUBLE)); in HWTEST_F_L0() 79 double const day1 = ecmascript::JSDate::MakeDay(0, 11, 31); in HWTEST_F_L0() 80 double const time1 = ecmascript::JSDate::MakeTime(0, 0, 0, 0); in HWTEST_F_L0() 81 double ms1 = ecmascript::JSDate::TimeClip(ecmascript::JSDate::MakeDate(day1, time1)); in HWTEST_F_L0() 84 double const day = ecmascript::JSDate::MakeDay(-1, 11, 31); in HWTEST_F_L0() 85 double const time = ecmascript::JSDate::MakeTime(0, 0, 0, 0); in HWTEST_F_L0() [all …]
|
D | dump_test.cpp | 609 CHECK_DUMP_FIELDS(JSObject::SIZE, JSDate::SIZE, 2U); in HWTEST_F_L0() 610 … JSHandle<JSHClass> dateClass = factory->NewEcmaHClass(JSDate::SIZE, JSType::JS_DATE, proto); in HWTEST_F_L0() 611 … JSHandle<JSDate> date = JSHandle<JSDate>::Cast(factory->NewJSObjectWithInit(dateClass)); in HWTEST_F_L0()
|
D | js_serializer_test.cpp | 462 JSHandle<JSDate> resDate = JSHandle<JSDate>(res); in JSDateTest() 1460 JSDate *JSDateCreate(EcmaVM *ecmaVM) in JSDateCreate() 1465 JSHandle<JSDate> dateObject = in JSDateCreate() 1466 …JSHandle<JSDate>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(dateFunction), dateF… in JSDateCreate() 1473 JSHandle<JSDate> jsDate(thread, JSDateCreate(ecmaVm)); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_date.cpp | 46 double now = JSDate::Now().GetDouble(); in DateConstructor() 47 CString str = JSDate::ToDateString(now); in DateConstructor() 54 timeValue = JSDate::Now(); in DateConstructor() 58 JSHandle<JSDate> jsDate(thread, JSDate::Cast(value->GetTaggedObject())); in DateConstructor() 65 timeValue = JSDate::Parse(argv); in DateConstructor() 72 timeValue = JSTaggedValue(JSDate::TimeClip(timeValue.GetDouble())); in DateConstructor() 84 JSHandle<JSDate> dateObject = JSHandle<JSDate>::Cast(obj); in DateConstructor() 93 return JSDate::Now(); in Now() 101 return JSDate::Parse(argv); in Parse() 109 return JSDate::UTC(argv); in UTC() [all …]
|
D | builtins_date_time_format.cpp | 164 x = JSDate::Now().GetNumber(); in AnonymousDateTimeFormat() 197 x = JSDate::Now().GetNumber(); in FormatToParts() 204 double xValue = JSDate::TimeClip(x); in FormatToParts()
|
D | builtins.cpp | 903 factory_->NewEcmaHClass(JSDate::SIZE, JSType::JS_DATE, dateFuncPrototypeValue); in InitializeDate()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_date_test.cpp | 60 JSHandle<JSDate> JSDateCreateTest(JSThread *thread) in JSDateCreateTest() 66 JSHandle<JSDate> dateObject = in JSDateCreateTest() 67 …JSHandle<JSDate>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(dateFunction), dateF… in JSDateCreateTest() 73 JSHandle<JSDate> jsDate = JSDateCreateTest(thread); in HWTEST_F_L0() 88 JSHandle<JSDate> jsDate = JSDateCreateTest(thread); in HWTEST_F_L0() 103 JSHandle<JSDate> jsDate = JSDateCreateTest(thread); in HWTEST_F_L0() 118 JSHandle<JSDate> jsDate = JSDateCreateTest(thread); in HWTEST_F_L0() 147 JSHandle<JSDate> jsDate = JSDateCreateTest(thread); in HWTEST_F_L0() 176 JSHandle<JSDate> jsDate = JSDateCreateTest(thread); in HWTEST_F_L0() 198 JSHandle<JSDate> jsDate = JSDateCreateTest(thread); in HWTEST_F_L0() [all …]
|
D | builtins_date_time_format_test.cpp | 151 const double day = JSDate::MakeDay(year, month, date); in BuiltinsDateCreate() 152 const double time = JSDate::MakeTime(0, 0, 0, 0); // 24:00:00 in BuiltinsDateCreate() 153 double days = JSDate::MakeDate(day, time); in BuiltinsDateCreate()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_date.cpp | 133 double JSDate::MakeTime(double hour, double min, double sec, double ms) in MakeTime() 147 double JSDate::MakeDay(double year, double month, double date) in MakeDay() 169 double JSDate::MakeDate(double day, double time) in MakeDate() 179 double JSDate::TimeClip(double time) in TimeClip() 188 double JSDate::LocalTime(double timeMs) const in LocalTime() 194 double JSDate::UTCTime(double timeMs) const in UTCTime() 200 int JSDate::GetSignedNumFromString(const CString &str, int len, int *index) in GetSignedNumFromString() 211 bool JSDate::GetNumFromString(const CString &str, int len, int *index, int *num) in GetNumFromString() 242 int64_t JSDate::GetLocalOffsetInMin(const JSThread *thread, int64_t timeMs, bool isLocal) in GetLocalOffsetInMin() 256 JSTaggedValue JSDate::LocalParseStringToMs(const CString &str) in LocalParseStringToMs() [all …]
|
D | date_parse.h | 59 num = (value_ - '0') + num * JSDate::TEN; in ReadNumber() 433 return value * JSDate::TEN; in NormMilliSecond() 436 return value * JSDate::HUNDRED; in NormMilliSecond() 441 divisor *= JSDate::TEN; in NormMilliSecond() 499 return IsBetween(n, 1, JSDate::MAX_DAYS_MONTH); in DayIsValid()
|
D | ecma_macros.h | 230 JSHandle<JSDate> jsDate(thread, JSDate::Cast(msg->GetTaggedObject())); \ 247 if (std::isnan(JSDate::Cast(msg->GetTaggedObject())->GetTimeValue().GetDouble())) { \ 250 return JSDate::Cast(msg->GetTaggedObject())->name(thread); \ 263 …if (std::isnan(JSDate::Cast(msg->GetTaggedObject())->GetTimeValue().GetDouble())) { … 266 …return JSDate::Cast(msg->GetTaggedObject())->name(thread); … 279 JSHandle<JSDate> jsDate(thread, JSDate::Cast(msg->GetTaggedObject())); \
|
D | js_date.h | 84 class JSDate : public JSObject { 86 CAST_CHECK(JSDate, IsDate);
|
D | object_fast_operator-inl.h | 475 if (month < 1 || month > JSDate::MONTH_PER_YEAR) { in FastParseDate() 478 if (date < 1 || date > JSDate::MAX_DAYS_MONTH) { in FastParseDate() 481 double day = JSDate::MakeDay(year, month - 1, date); in FastParseDate() 482 double timeValue = JSDate::TimeClip(JSDate::MakeDate(day, 0)); in FastParseDate() 785 if (val >= 0 && val <= JSDate::NUM_NINE) { in GetNumFromString() 786 value = value * JSDate::TEN + val; in GetNumFromString()
|
D | date_parse.cpp | 259 timeZone->SetHour(timeNum / JSDate::HUNDRED); in ParseLegacyDates() 260 timeZone->SetMin(timeNum % JSDate::HUNDRED); in ParseLegacyDates()
|
D | js_date_time_format.cpp | 660 double xValue = JSDate::TimeClip(x); in FormatDateTime() 978 x = JSDate::TimeClip(x); in NormDateTimeRange() 984 y = JSDate::TimeClip(y); in NormDateTimeRange() 1021 x = JSDate::TimeClip(x); in NormDateTimeRangeToParts() 1027 y = JSDate::TimeClip(y); in NormDateTimeRangeToParts()
|
D | js_serializer.cpp | 557 JSHandle<JSDate> date = JSHandle<JSDate>::Cast(value); in WriteJSDate() 1415 … JSHandle<JSDate> date = JSHandle<JSDate>::Cast(factory_->NewJSObjectByConstructor(dateFunction)); in ReadJSDate()
|
D | js_tagged_value.cpp | 276 double timeX = JSDate::Cast(x->GetTaggedObject())->GetTimeValue().GetDouble(); in Compare() 277 double timeY = JSDate::Cast(y->GetTaggedObject())->GetTimeValue().GetDouble(); in Compare()
|
D | object_factory.h | 51 class JSDate; variable
|
D | dump.cpp | 729 JSDate::Cast(obj)->Dump(os); in DumpObject() 1591 void JSDate::Dump(std::ostream &os) const in Dump() 3777 JSDate::Cast(obj)->DumpForSnapshot(vec); in DumpObject() 4462 void JSDate::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot()
|
D | object_factory.cpp | 1045 JSDate::Cast(*obj)->SetTimeValue(thread_, JSTaggedValue(0.0)); in InitializeJSObject() 1046 JSDate::Cast(*obj)->SetLocalOffset(thread_, JSTaggedValue(JSDate::MAX_DOUBLE)); in InitializeJSObject()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | object_xray.h | 253 JSDate::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 122 using ecmascript::JSDate; 2484 JSHandle<JSDate> dateObject(factory->NewJSObjectByConstructor(dateFunction)); in New() 2493 JSHandle<JSDate> date(JSNApiHelper::ToJSHandle(this)); in ToString() 2506 JSHandle<JSDate> date(JSNApiHelper::ToJSHandle(this)); in GetTime()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | builtins_stubs.cpp | 1067 GateRef timeValueOffset = IntPtr(JSDate::TIME_VALUE_OFFSET); in DECLARE_BUILTINS()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.cpp | 2245 return JSDate::TimeClip(time); in TimeClip() 2255 …return JSDate::SetDateValues(static_cast<int64_t>(year), static_cast<int64_t>(month), static_cast<… in SetDateValues()
|