WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 203550
[JSC] DateMath should have TimeClipped version
https://bugs.webkit.org/show_bug.cgi?id=203550
Summary
[JSC] DateMath should have TimeClipped version
Yusuke Suzuki
Reported
2019-10-28 21:10:51 PDT
ECMAScript uses milliseconds (double) as its internal representation, but Date constructor and its operation clips this double before actually using it. As a result, this milliseconds is always within 53bit, and it is always integer. This means that we should use int64_t when calculating GregorianDateTime. When running instruments profiler, 31% of time is consumed by `fmod`. This is really fun, we should use integers instead.
Attachments
Patch
(32.47 KB, patch)
2019-10-29 18:34 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(34.99 KB, patch)
2019-10-29 20:02 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(34.33 KB, patch)
2019-10-29 20:09 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(32.54 KB, patch)
2019-10-30 19:32 PDT
,
Yusuke Suzuki
saam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-10-29 16:48:01 PDT
<
rdar://problem/56726976
>
Yusuke Suzuki
Comment 2
2019-10-29 18:34:50 PDT
Created
attachment 382260
[details]
Patch
Yusuke Suzuki
Comment 3
2019-10-29 20:02:34 PDT
Created
attachment 382268
[details]
Patch
Yusuke Suzuki
Comment 4
2019-10-29 20:09:47 PDT
Created
attachment 382270
[details]
Patch
Yusuke Suzuki
Comment 5
2019-10-30 19:32:11 PDT
Created
attachment 382412
[details]
Patch
Yusuke Suzuki
Comment 6
2019-10-31 09:14:09 PDT
Committed
r251852
: <
https://trac.webkit.org/changeset/251852
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug