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

Issue 1155043005: Fix compile warning [-Wtype-limits] (Closed)

Created:
5 years, 6 months ago by sejunho
Modified:
5 years, 6 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix compile warning [-Wtype-limits] This fixes warning on android_arm build. Previously the compiler complained about a check that can never be true. See second check below(index is size_t type, FIRST_SPACE=0): if (index > i::LAST_SPACE || index < i::FIRST_SPACE) And make the code easy to understand. BUG= Committed: https://crrev.com/e23d8bc7e790519254a4ce2865a2a9461d02ecce Cr-Commit-Position: refs/heads/master@{#29042}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Apply compile assert, also rebased #

Total comments: 3

Patch Set 3 : Address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -3 lines) Patch
M src/api.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M src/heap/heap.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
sejunho
PTAL
5 years, 6 months ago (2015-06-04 06:26:13 UTC) #2
vogelheim
https://codereview.chromium.org/1155043005/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1155043005/diff/1/src/api.cc#newcode7214 src/api.cc:7214: if (index > i::LAST_SPACE || (i::FIRST_SPACE > 0 && ...
5 years, 6 months ago (2015-06-05 08:30:43 UTC) #3
sejunho
On 2015/06/05 08:30:43, vogelheim wrote: > https://codereview.chromium.org/1155043005/diff/1/src/api.cc > File src/api.cc (right): > > https://codereview.chromium.org/1155043005/diff/1/src/api.cc#newcode7214 > ...
5 years, 6 months ago (2015-06-05 09:05:38 UTC) #4
vogelheim
On 2015/06/05 09:05:38, sejunho wrote: > On 2015/06/05 08:30:43, vogelheim wrote: > > https://codereview.chromium.org/1155043005/diff/1/src/api.cc > ...
5 years, 6 months ago (2015-06-08 16:42:38 UTC) #5
sejunho
On 2015/06/08 16:42:38, vogelheim wrote: > On 2015/06/05 09:05:38, sejunho wrote: > > On 2015/06/05 ...
5 years, 6 months ago (2015-06-09 01:12:44 UTC) #6
sejunho
On 2015/06/09 01:12:44, sejunho wrote: > On 2015/06/08 16:42:38, vogelheim wrote: > > On 2015/06/05 ...
5 years, 6 months ago (2015-06-09 01:15:25 UTC) #7
Sven Panne
https://codereview.chromium.org/1155043005/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1155043005/diff/20001/src/api.cc#newcode7256 src/api.cc:7256: COMPILE_ASSERT(i::FIRST_SPACE == 0, first_space_assumed_to_be_zero); Sorry for chiming in so ...
5 years, 6 months ago (2015-06-09 06:44:46 UTC) #9
sejunho
https://codereview.chromium.org/1155043005/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1155043005/diff/20001/src/api.cc#newcode7256 src/api.cc:7256: COMPILE_ASSERT(i::FIRST_SPACE == 0, first_space_assumed_to_be_zero); On 2015/06/09 06:44:46, Sven Panne ...
5 years, 6 months ago (2015-06-09 08:22:27 UTC) #10
sejunho
On 2015/06/09 08:22:27, sejunho wrote: > https://codereview.chromium.org/1155043005/diff/20001/src/api.cc > File src/api.cc (right): > > https://codereview.chromium.org/1155043005/diff/20001/src/api.cc#newcode7256 > ...
5 years, 6 months ago (2015-06-09 08:26:09 UTC) #11
sejunho
On 2015/06/09 08:26:09, sejunho wrote: > On 2015/06/09 08:22:27, sejunho wrote: > > https://codereview.chromium.org/1155043005/diff/20001/src/api.cc > ...
5 years, 6 months ago (2015-06-10 03:10:56 UTC) #12
sejunho
https://codereview.chromium.org/1155043005/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1155043005/diff/20001/src/api.cc#newcode7256 src/api.cc:7256: COMPILE_ASSERT(i::FIRST_SPACE == 0, first_space_assumed_to_be_zero); On 2015/06/09 06:44:46, Sven Panne ...
5 years, 6 months ago (2015-06-10 03:17:26 UTC) #13
sejunho
On 2015/06/10 03:17:26, sejunho wrote: > https://codereview.chromium.org/1155043005/diff/20001/src/api.cc > File src/api.cc (right): > > https://codereview.chromium.org/1155043005/diff/20001/src/api.cc#newcode7256 > ...
5 years, 6 months ago (2015-06-15 07:22:26 UTC) #14
vogelheim
Looks good. Since this now affects src/heap/*, putting heap owner hpayer@ as reviewer. I'll be ...
5 years, 6 months ago (2015-06-15 16:10:07 UTC) #16
Hannes Payer (out of office)
LGTM, please add a more descriptive description about what you fixed.
5 years, 6 months ago (2015-06-16 07:24:36 UTC) #17
sejunho
On 2015/06/16 07:24:36, Hannes Payer wrote: > LGTM, please add a more descriptive description about ...
5 years, 6 months ago (2015-06-16 07:47:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1155043005/40001
5 years, 6 months ago (2015-06-16 07:49:30 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-16 08:20:17 UTC) #22
commit-bot: I haz the power
5 years, 6 months ago (2015-06-16 08:20:31 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e23d8bc7e790519254a4ce2865a2a9461d02ecce
Cr-Commit-Position: refs/heads/master@{#29042}

Powered by Google App Engine
This is Rietveld 408576698