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

Issue 1178403004: [turbofan] Use appropriate type for NodeId. (Closed)

Created:
5 years, 6 months ago by Benedikt Meurer
Modified:
5 years, 6 months ago
Reviewers:
Sven Panne
CC:
v8-dev, Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Use appropriate type for NodeId. Up until now we used int32_t for NodeId, but that was not ideal because negative values are invalid for NodeId and we use it as an array index for example in the NodeMarker class, where C++ compilers on x64 have to generate code that does proper sign extension for the indices, which is completely unnecessary. R=svenpanne@chromium.org Committed: https://crrev.com/c487aba74c1898e6f54a00001d84e30b39261d96 Cr-Commit-Position: refs/heads/master@{#28997}

Patch Set 1 #

Patch Set 2 : Fix compilation errors. #

Total comments: 1

Patch Set 3 : Make MSVC happy. #

Patch Set 4 : Fix useless static_cast. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -34 lines) Patch
M include/v8config.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/base/bits.h View 1 chunk +13 lines, -0 lines 0 comments Download
M src/compiler/graph.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/graph.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/graph-reducer.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/graph-reducer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/loop-analysis.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/compiler/node.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/osr.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/schedule.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M src/compiler/simplified-lowering.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/compiler/test-js-constant-cache.cc View 1 5 chunks +5 lines, -5 lines 0 comments Download
M test/unittests/base/bits-unittest.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M test/unittests/compiler/control-equivalence-unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/graph-reducer-unittest.cc View 1 9 chunks +12 lines, -12 lines 0 comments Download
M test/unittests/compiler/graph-unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Benedikt Meurer
5 years, 6 months ago (2015-06-12 08:33:47 UTC) #1
Benedikt Meurer
Hey Sven, This is an obvious one. Please take a look. Thanks, Benedikt
5 years, 6 months ago (2015-06-12 08:37:07 UTC) #2
Sven Panne
https://codereview.chromium.org/1178403004/diff/20001/src/compiler/simplified-lowering.cc File src/compiler/simplified-lowering.cc (right): https://codereview.chromium.org/1178403004/diff/20001/src/compiler/simplified-lowering.cc#newcode75 src/compiler/simplified-lowering.cc:75: info_(zone->NewArray<NodeInfo>(static_cast<int>(count_))), AFAICT, we don't need the static_cast here. By ...
5 years, 6 months ago (2015-06-12 11:19:36 UTC) #3
Sven Panne
LGTM if my nit is addressed, BTW :-)
5 years, 6 months ago (2015-06-12 11:26:55 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1178403004/30016
5 years, 6 months ago (2015-06-12 11:28:11 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:30016)
5 years, 6 months ago (2015-06-12 12:03:08 UTC) #8
commit-bot: I haz the power
5 years, 6 months ago (2015-06-12 12:03:29 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c487aba74c1898e6f54a00001d84e30b39261d96
Cr-Commit-Position: refs/heads/master@{#28997}

Powered by Google App Engine
This is Rietveld 408576698