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

Issue 527603002: Use the "enum hack" to fix the SmiTagging constants. (Closed)

Created:
6 years, 3 months ago by Benedikt Meurer
Modified:
6 years, 3 months ago
Reviewers:
Jarin, rossberg
CC:
Paweł Hajdan Jr., v8-dev
Base URL:
git@github.com:v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

Use the "enum hack" to fix the SmiTagging constants. The "enum hack" (see Item 2 of "Effective C++") is the only known portable way to define constant integral values within template classes. Fixes the weird work-arounds required for certain GCC versions. R=jarin@chromium.org, rossberg@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=23550

Patch Set 1 #

Patch Set 2 : static_cast #

Patch Set 3 : fix typo #

Total comments: 2

Patch Set 4 : Addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -36 lines) Patch
M include/v8.h View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M src/compiler/change-lowering.cc View 1 2 3 1 chunk +4 lines, -16 lines 0 comments Download
M test/compiler-unittests/change-lowering-unittest.cc View 1 2 3 1 chunk +4 lines, -16 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Benedikt Meurer
PTAL
6 years, 3 months ago (2014-09-01 05:47:13 UTC) #2
Jarin
lgtm. https://codereview.chromium.org/527603002/diff/40001/src/compiler/change-lowering.cc File src/compiler/change-lowering.cc (right): https://codereview.chromium.org/527603002/diff/40001/src/compiler/change-lowering.cc#newcode54 src/compiler/change-lowering.cc:54: machine()->is32() ? static_cast<int>(SmiTagging<4>::kSmiValueSize) You might want to define ...
6 years, 3 months ago (2014-09-01 06:20:21 UTC) #3
Benedikt Meurer
Andreas: WDYT?
6 years, 3 months ago (2014-09-01 06:27:21 UTC) #5
rossberg
lgtm https://codereview.chromium.org/527603002/diff/40001/src/compiler/change-lowering.cc File src/compiler/change-lowering.cc (right): https://codereview.chromium.org/527603002/diff/40001/src/compiler/change-lowering.cc#newcode54 src/compiler/change-lowering.cc:54: machine()->is32() ? static_cast<int>(SmiTagging<4>::kSmiValueSize) On 2014/09/01 06:20:21, jarin wrote: ...
6 years, 3 months ago (2014-09-01 09:51:48 UTC) #6
Benedikt Meurer
6 years, 3 months ago (2014-09-01 10:24:13 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 23550 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698