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

Issue 1952843002: Create TimeBase for time related classes. (Closed)

Created:
4 years, 7 months ago by lpy
Modified:
4 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Create TimeBase for time related classes. Currently we have Time and TimeTicks sharing some methods. This patch creates TimeBase, and makes Time and TimeTicks inherits from it, so that time related classes won't have to implement common methods and it's easier to introduce new time related classes. BUG=v8:4990 LOG=n Committed: https://crrev.com/5cbe0f5d25592525b1f8244a81c75a9df29969a8 Cr-Commit-Position: refs/heads/master@{#36088}

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -144 lines) Patch
M src/base/bits.h View 1 2 3 2 chunks +21 lines, -0 lines 2 comments Download
M src/base/bits.cc View 1 2 3 2 chunks +30 lines, -0 lines 0 comments Download
M src/base/platform/time.h View 1 2 8 chunks +121 lines, -144 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
lpy
PTAL.
4 years, 7 months ago (2016-05-04 22:51:43 UTC) #2
fmeawad
It is worth mentioning that this work is triggered by the need to add ThreadTicks ...
4 years, 7 months ago (2016-05-04 23:34:22 UTC) #3
lpy
PTAL. https://codereview.chromium.org/1952843002/diff/1/src/base/platform/time.h File src/base/platform/time.h (right): https://codereview.chromium.org/1952843002/diff/1/src/base/platform/time.h#newcode211 src/base/platform/time.h:211: bool IsMax() const { return us_ == std::numeric_limits<int64_t>::max(); ...
4 years, 7 months ago (2016-05-05 00:00:05 UTC) #4
fmeawad
lgtm, but I want to hear from the V8 team concerning the Saturated functions.
4 years, 7 months ago (2016-05-05 00:01:40 UTC) #5
Benedikt Meurer
https://codereview.chromium.org/1952843002/diff/20001/src/base/platform/time.h File src/base/platform/time.h (right): https://codereview.chromium.org/1952843002/diff/20001/src/base/platform/time.h#newcode34 src/base/platform/time.h:34: int64_t SaturatedAdd(TimeDelta delta, int64_t value); Can you move these ...
4 years, 7 months ago (2016-05-06 04:15:06 UTC) #6
lpy
I updated the CL. PTAL. https://codereview.chromium.org/1952843002/diff/20001/src/base/platform/time.h File src/base/platform/time.h (right): https://codereview.chromium.org/1952843002/diff/20001/src/base/platform/time.h#newcode34 src/base/platform/time.h:34: int64_t SaturatedAdd(TimeDelta delta, int64_t ...
4 years, 7 months ago (2016-05-06 05:09:08 UTC) #7
Benedikt Meurer
Thanks. LGTM once comments are addressed. https://codereview.chromium.org/1952843002/diff/40001/src/base/bits.h File src/base/bits.h (right): https://codereview.chromium.org/1952843002/diff/40001/src/base/bits.h#newcode308 src/base/bits.h:308: CheckedNumeric<int64_t> rv(lhs); Please ...
4 years, 7 months ago (2016-05-06 05:12:58 UTC) #8
lpy
Thanks. Comments were addressed. jochen@, PTAL. https://codereview.chromium.org/1952843002/diff/40001/src/base/bits.h File src/base/bits.h (right): https://codereview.chromium.org/1952843002/diff/40001/src/base/bits.h#newcode308 src/base/bits.h:308: CheckedNumeric<int64_t> rv(lhs); On ...
4 years, 7 months ago (2016-05-06 05:28:29 UTC) #9
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1952843002/diff/80001/src/base/bits.h File src/base/bits.h (right): https://codereview.chromium.org/1952843002/diff/80001/src/base/bits.h#newcode20 src/base/bits.h:20: namespace internal { safe_math.h has using internal::CheckedNumeric in namespace ...
4 years, 7 months ago (2016-05-06 09:43:02 UTC) #10
lpy
https://codereview.chromium.org/1952843002/diff/80001/src/base/bits.h File src/base/bits.h (right): https://codereview.chromium.org/1952843002/diff/80001/src/base/bits.h#newcode20 src/base/bits.h:20: namespace internal { On 2016/05/06 09:43:02, jochen wrote: > ...
4 years, 7 months ago (2016-05-06 17:23:23 UTC) #11
jochen (gone - plz use gerrit)
On 2016/05/06 at 17:23:23, lpy wrote: > https://codereview.chromium.org/1952843002/diff/80001/src/base/bits.h > File src/base/bits.h (right): > > https://codereview.chromium.org/1952843002/diff/80001/src/base/bits.h#newcode20 ...
4 years, 7 months ago (2016-05-06 18:20:32 UTC) #12
lpy
On 2016/05/06 18:20:32, jochen wrote: > On 2016/05/06 at 17:23:23, lpy wrote: > > https://codereview.chromium.org/1952843002/diff/80001/src/base/bits.h ...
4 years, 7 months ago (2016-05-06 18:26:07 UTC) #13
jochen (gone - plz use gerrit)
lgtm
4 years, 7 months ago (2016-05-06 18:29:10 UTC) #14
lpy
On 2016/05/06 18:29:10, jochen wrote: > lgtm thanks.
4 years, 7 months ago (2016-05-06 18:34:07 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952843002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952843002/80001
4 years, 7 months ago (2016-05-06 18:34:16 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-06 18:35:58 UTC) #19
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 18:36:51 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5cbe0f5d25592525b1f8244a81c75a9df29969a8
Cr-Commit-Position: refs/heads/master@{#36088}

Powered by Google App Engine
This is Rietveld 408576698