Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Issue 21848004: OS::TimeCurrentMillis should return double not long double (Closed)

Created:
7 years, 4 months ago by yurys
Modified:
7 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

OS::TimeCurrentMillis should return double not long double Make sure the value returned from OS::TimeCurrentMillis is cast to double (not long double). I also tried assigning the result of the expression to double variable and doing static_cast<double> but those are not enough on gcc. Not sure if we want this patch. I'm going to change profiler code to return microseconds as int64_t anyways. BUG=v8:2824

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M src/platform-posix.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
yurys
Here is the assembler code for the function without and with volatile: => 0x085647e0 <+0>: ...
7 years, 4 months ago (2013-08-05 10:06:16 UTC) #1
Benedikt Meurer
Using FPs for time values is never actually a good idea. So, I suggest to ...
7 years, 4 months ago (2013-08-05 10:13:03 UTC) #2
yurys
On 2013/08/05 10:13:03, Benedikt Meurer wrote: > Using FPs for time values is never actually ...
7 years, 4 months ago (2013-08-05 10:24:48 UTC) #3
Benedikt Meurer
I think OS::TimeCurrentMillis() should be replaced with OS::Ticks().
7 years, 4 months ago (2013-08-05 10:29:10 UTC) #4
Sven Panne
On 2013/08/05 10:29:10, Benedikt Meurer wrote: > I think OS::TimeCurrentMillis() should be replaced with OS::Ticks(). ...
7 years, 4 months ago (2013-08-05 10:41:18 UTC) #5
Sven Panne
What's the current state of the CL? Will it be subsumed by fixing https://code.google.com/p/v8/issues/detail?id=2853?
7 years, 4 months ago (2013-08-21 10:23:09 UTC) #6
Benedikt Meurer
On 2013/08/21 10:23:09, Sven Panne wrote: > What's the current state of the CL? Will ...
7 years, 4 months ago (2013-08-21 10:49:21 UTC) #7
yurys
7 years, 4 months ago (2013-08-21 11:24:57 UTC) #8
On 2013/08/21 10:49:21, Benedikt Meurer wrote:
> On 2013/08/21 10:23:09, Sven Panne wrote:
> > What's the current state of the CL? Will it be subsumed by fixing
> > https://code.google.com/p/v8/issues/detail?id=2853?
> 
> To a certain degree, yes. OS::TimeCurrentMillis() will be dropped and the
> profiler will use high-res timer tick clocks instead, and of course time is
not
> represented as floating point anymore.

Closing this issue as we decided not to go this route.

Powered by Google App Engine
This is Rietveld 408576698