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

Issue 2733323003: PPC/s390: [assembler] Make register definitions constexpr (Closed)

Created:
3 years, 9 months ago by JaideepBajwa
Modified:
3 years, 9 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

PPC/s390: [assembler] Make register definitions constexpr Port e82b7ccd3211e226649c73148574c1967ba647e4 Original Commit Message: I originally needed this for the initialization of a constexpr array in the wasm lazy compile builtin, but since it's a bigger change, I now split it off as this separate CL. The style guide recommends constexpr over const. I thus apply the constexprificaton over all headers that I touched anyway. I also remove the ARM64_DEFINE_REG_STATICS hack. It was introduced when merging in arm64 support more than three years ago, and I don't see the purpose for this. Also, some #defines can now be constexpr definitions, which was not possible before according to the comment. R=clemensh@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com BUG= LOG=N Review-Url: https://codereview.chromium.org/2733323003 Cr-Commit-Position: refs/heads/master@{#43678} Committed: https://chromium.googlesource.com/v8/v8/+/e7be85daf69bbf9adef4841eae2839e4075f40f7

Patch Set 1 #

Total comments: 16

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -119 lines) Patch
M src/ppc/assembler-ppc.h View 1 12 chunks +63 lines, -67 lines 0 comments Download
M src/s390/assembler-s390.h View 1 10 chunks +50 lines, -52 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
JaideepBajwa
ptal
3 years, 9 months ago (2017-03-08 06:13:28 UTC) #1
JoranSiu
On 2017/03/08 06:13:28, JaideepBajwa wrote: > ptal lgtm
3 years, 9 months ago (2017-03-08 06:40:38 UTC) #2
Clemens Hammacher
LGTM with nits https://codereview.chromium.org/2733323003/diff/1/src/ppc/assembler-ppc.h File src/ppc/assembler-ppc.h (right): https://codereview.chromium.org/2733323003/diff/1/src/ppc/assembler-ppc.h#newcode197 src/ppc/assembler-ppc.h:197: #define DECLARE_REGISTER(R) constexpr Register R = ...
3 years, 9 months ago (2017-03-08 09:13:47 UTC) #3
john.yan
lgtm
3 years, 9 months ago (2017-03-08 15:10:10 UTC) #4
JaideepBajwa
thank you. https://codereview.chromium.org/2733323003/diff/1/src/ppc/assembler-ppc.h File src/ppc/assembler-ppc.h (right): https://codereview.chromium.org/2733323003/diff/1/src/ppc/assembler-ppc.h#newcode197 src/ppc/assembler-ppc.h:197: #define DECLARE_REGISTER(R) constexpr Register R = {Register::kCode_##R}; ...
3 years, 9 months ago (2017-03-08 15:59:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2733323003/20001
3 years, 9 months ago (2017-03-08 16:00:07 UTC) #8
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 16:24:08 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/e7be85daf69bbf9adef4841eae2839e4075...

Powered by Google App Engine
This is Rietveld 408576698