v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::JSDate Class Reference

#include <js-objects.h>

Inheritance diagram for v8::internal::JSDate:
Collaboration diagram for v8::internal::JSDate:

Classes

class  BodyDescriptor
 

Public Types

enum  FieldIndex {
  kYear , kMonth , kDay , kWeekday ,
  kHour , kMinute , kSecond , kFirstUncachedField ,
  kMillisecond = kFirstUncachedField , kDays , kTimeInDay , kFirstUTCField ,
  kYearUTC = kFirstUTCField , kMonthUTC , kDayUTC , kWeekdayUTC ,
  kHourUTC , kMinuteUTC , kSecondUTC , kMillisecondUTC ,
  kDaysUTC , kTimeInDayUTC , kTimezoneOffset
}
 

Public Member Functions

void SetValue (double v)
 
void SetNanValue ()
 

Static Public Member Functions

static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSDateNew (DirectHandle< JSFunction > constructor, DirectHandle< JSReceiver > new_target, double tv)
 
static int64_t CurrentTimeValue (Isolate *isolate)
 
static Address GetField (Isolate *isolate, Address raw_date, Address smi_index)
 

Private Member Functions

Tagged< ObjectDoGetField (Isolate *isolate, FieldIndex index)
 
Tagged< ObjectGetUTCField (FieldIndex index, double value, DateCache *date_cache)
 
void SetCachedFields (int64_t local_time_ms, DateCache *date_cache)
 

Detailed Description

Definition at line 1251 of file js-objects.h.

Member Enumeration Documentation

◆ FieldIndex

Enumerator
kYear 
kMonth 
kDay 
kWeekday 
kHour 
kMinute 
kSecond 
kFirstUncachedField 
kMillisecond 
kDays 
kTimeInDay 
kFirstUTCField 
kYearUTC 
kMonthUTC 
kDayUTC 
kWeekdayUTC 
kHourUTC 
kMinuteUTC 
kSecondUTC 
kMillisecondUTC 
kDaysUTC 
kTimeInDayUTC 
kTimezoneOffset 

Definition at line 1279 of file js-objects.h.

Member Function Documentation

◆ CurrentTimeValue()

int64_t v8::internal::JSDate::CurrentTimeValue ( Isolate * isolate)
static

Definition at line 5693 of file js-objects.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DoGetField()

Tagged< Object > v8::internal::JSDate::DoGetField ( Isolate * isolate,
FieldIndex index )
private

Definition at line 5719 of file js-objects.cc.

Here is the call graph for this function:

◆ GetField()

Address v8::internal::JSDate::GetField ( Isolate * isolate,
Address raw_date,
Address smi_index )
static

Definition at line 5705 of file js-objects.cc.

Here is the call graph for this function:

◆ GetUTCField()

Tagged< Object > v8::internal::JSDate::GetUTCField ( FieldIndex index,
double value,
DateCache * date_cache )
private

Definition at line 5768 of file js-objects.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ New()

MaybeDirectHandle< JSDate > v8::internal::JSDate::New ( DirectHandle< JSFunction > constructor,
DirectHandle< JSReceiver > new_target,
double tv )
static

Definition at line 5677 of file js-objects.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetCachedFields()

void v8::internal::JSDate::SetCachedFields ( int64_t local_time_ms,
DateCache * date_cache )
inlineprivate

Definition at line 5839 of file js-objects.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetNanValue()

void v8::internal::JSDate::SetNanValue ( )

Definition at line 5825 of file js-objects.cc.

Here is the call graph for this function:

◆ SetValue()

void v8::internal::JSDate::SetValue ( double v)

Definition at line 5815 of file js-objects.cc.

Here is the call graph for this function:

The documentation for this class was generated from the following files: