[JSC] Implement Temporal.Now.instant()
Created attachment 448273 [details] Patch
Comment on attachment 448273 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=448273&action=review Seems good to me. > Source/WTF/wtf/PlatformUse.h:-92 > -/* On Windows, use QueryPerformanceCounter by default */ > -#if OS(WINDOWS) > -#define USE_QUERY_PERFORMANCE_COUNTER 1 > -#endif So the assumption is that nobody on Windows has a reason to turn this off? I suppose we should mention that in the ChangeLog.
Comment on attachment 448273 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=448273&action=review Looks good! > Source/WTF/wtf/CurrentTime.cpp:201 > + return static_cast<Int128>(currentTime() * 1000000000); No idea if the WebKit coding style encourages or discourages this, but I usually prefer to include numeric separators, like 1'000'000'000, it makes it easier to see at a glance if there is a typo in the number of digits!
<rdar://problem/87385546>
Comment on attachment 448273 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=448273&action=review >> Source/WTF/wtf/CurrentTime.cpp:201 >> + return static_cast<Int128>(currentTime() * 1000000000); > > No idea if the WebKit coding style encourages or discourages this, but I usually prefer to include numeric separators, like 1'000'000'000, it makes it easier to see at a glance if there is a typo in the number of digits! Changed.
Comment on attachment 448273 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=448273&action=review >> Source/WTF/wtf/PlatformUse.h:-92 >> -#endif > > So the assumption is that nobody on Windows has a reason to turn this off? I suppose we should mention that in the ChangeLog. Yes. Added.
Committed r288272 (246212@trunk): <https://commits.webkit.org/246212@trunk>