Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work on DateTime code #1629

Merged
merged 1 commit into from
May 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions src/CLR/CorLib/corlib_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,23 +411,25 @@ static const CLR_RT_MethodHandler method_lookup[] =
NULL,
NULL,
NULL,
Library_corlib_native_System_DateTime::get_Day___I4,
Library_corlib_native_System_DateTime::get_DayOfWeek___SystemDayOfWeek,
Library_corlib_native_System_DateTime::get_DayOfYear___I4,
Library_corlib_native_System_DateTime::get_Hour___I4,
NULL,
Library_corlib_native_System_DateTime::get_Millisecond___I4,
Library_corlib_native_System_DateTime::get_Minute___I4,
Library_corlib_native_System_DateTime::get_Month___I4,
Library_corlib_native_System_DateTime::get_Second___I4,
NULL,
NULL,
Library_corlib_native_System_DateTime::get_Year___I4,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
Library_corlib_native_System_DateTime::GetDateTimePart___I4__SystemDateTimeDateTimePart,
NULL,
Library_corlib_native_System_DateTime::DaysInMonth___STATIC__I4__I4__I4,
NULL,
Library_corlib_native_System_DateTime::get_UtcNow___STATIC__SystemDateTime,
Expand Down Expand Up @@ -1361,7 +1363,7 @@ const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_mscorlib =

#if (NANOCLR_REFLECTION == TRUE)

0xE988B5AD,
0x65E9CC45,

#elif (NANOCLR_REFLECTION == FALSE)

Expand All @@ -1372,5 +1374,5 @@ const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_mscorlib =
#endif

method_lookup,
{ 100, 4, 8, 0 }
{ 100, 4, 9, 0 }
};
11 changes: 1 addition & 10 deletions src/CLR/CorLib/corlib_native.h
Original file line number Diff line number Diff line change
Expand Up @@ -554,22 +554,13 @@ struct Library_corlib_native_System_DateTime
static const int FIELD___ticks = 1;

NANOCLR_NATIVE_DECLARE(_ctor___VOID__I4__I4__I4__I4__I4__I4__I4);
NANOCLR_NATIVE_DECLARE(get_Day___I4);
NANOCLR_NATIVE_DECLARE(get_DayOfWeek___SystemDayOfWeek);
NANOCLR_NATIVE_DECLARE(get_DayOfYear___I4);
NANOCLR_NATIVE_DECLARE(get_Hour___I4);
NANOCLR_NATIVE_DECLARE(get_Millisecond___I4);
NANOCLR_NATIVE_DECLARE(get_Minute___I4);
NANOCLR_NATIVE_DECLARE(get_Month___I4);
NANOCLR_NATIVE_DECLARE(get_Second___I4);
NANOCLR_NATIVE_DECLARE(get_Year___I4);
NANOCLR_NATIVE_DECLARE(GetDateTimePart___I4__SystemDateTimeDateTimePart);
NANOCLR_NATIVE_DECLARE(DaysInMonth___STATIC__I4__I4__I4);
NANOCLR_NATIVE_DECLARE(get_UtcNow___STATIC__SystemDateTime);
NANOCLR_NATIVE_DECLARE(get_Today___STATIC__SystemDateTime);

//--//

static CLR_INT64* NewObject ( CLR_RT_StackFrame& stack );
static CLR_INT64* GetValuePtr( CLR_RT_StackFrame& stack );
static CLR_INT64* GetValuePtr( CLR_RT_HeapBlock& ref );

Expand Down
Loading