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

Issue 2573573004: [stubs] Enable graph verification for builtins. (Closed)

Created:
4 years ago by Igor Sheludko
Modified:
3 years, 3 months ago
Reviewers:
epertoso, Nico
CC:
v8-reviews_googlegroups.com, Michael Hablich
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[stubs] Enable graph verification for builtins. ... and fix the inconsistencies. BUG= Committed: https://crrev.com/a54d7acb11c6fd246a39d1b8945d144de9e9d7c6 Cr-Commit-Position: refs/heads/master@{#41690}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -177 lines) Patch
M src/builtins/builtins.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/builtins/builtins-array.cc View 10 chunks +20 lines, -22 lines 0 comments Download
M src/builtins/builtins-date.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/builtins-function.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/builtins/builtins-internal.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/builtins-promise.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/builtins/builtins-regexp.cc View 10 chunks +18 lines, -16 lines 0 comments Download
M src/builtins/builtins-sharedarraybuffer.cc View 6 chunks +16 lines, -15 lines 0 comments Download
M src/builtins/builtins-string.cc View 4 chunks +9 lines, -8 lines 0 comments Download
M src/code-stub-assembler.h View 5 chunks +21 lines, -11 lines 0 comments Download
M src/code-stub-assembler.cc View 30 chunks +83 lines, -80 lines 0 comments Download
M src/code-stubs.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/instruction-selector.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/machine-graph-verifier.cc View 5 chunks +43 lines, -3 lines 2 comments Download
M src/ic/accessor-assembler.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M src/interface-descriptors.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/interface-descriptors.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (21 generated)
Igor Sheludko
PTAL
4 years ago (2016-12-14 10:16:18 UTC) #17
epertoso
lgtm
4 years ago (2016-12-14 10:34:33 UTC) #18
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/2573573004/100001
4 years ago (2016-12-14 10:49:01 UTC) #20
commit-bot: I haz the power
Committed patchset #1 (id:100001)
4 years ago (2016-12-14 10:51:08 UTC) #23
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/a54d7acb11c6fd246a39d1b8945d144de9e9d7c6 Cr-Commit-Position: refs/heads/master@{#41690}
4 years ago (2016-12-14 10:51:36 UTC) #25
Nico
https://codereview.chromium.org/2573573004/diff/100001/src/compiler/machine-graph-verifier.cc File src/compiler/machine-graph-verifier.cc (right): https://codereview.chromium.org/2573573004/diff/100001/src/compiler/machine-graph-verifier.cc#newcode511 src/compiler/machine-graph-verifier.cc:511: break; This break is probably supposed to go in ...
3 years, 3 months ago (2017-09-15 19:28:27 UTC) #27
Igor Sheludko
3 years, 3 months ago (2017-09-20 15:15:20 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/2573573004/diff/100001/src/compiler/machine-g...
File src/compiler/machine-graph-verifier.cc (right):

https://codereview.chromium.org/2573573004/diff/100001/src/compiler/machine-g...
src/compiler/machine-graph-verifier.cc:511: break;
On 2017/09/15 19:28:25, Nico wrote:
> This break is probably supposed to go in the default branch instead of after
the
> switch? As-is, the code looks like
> 
>   for (...) {
>     switch (...) {}
>     break;
>   }
> 
> i.e. the for loop runs exactly once, with i = 0.
> 
> (found by this warning, which I'm evaluating:
> 
> ../../v8/src/compiler/machine-graph-verifier.cc(535,50):  error: loop will run
> at most once (loop increment never executed)
> [-Werror,-Wunreachable-code-loop-increment]
>             for (size_t i = 0; i < return_count; i++) {
>                                                  ^~~
> )

Nice catch! Thank you!
The fix: https://chromium-review.googlesource.com/c/v8/v8/+/674940

Powered by Google App Engine
This is Rietveld 408576698