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

Issue 939303002: Replace is_reference_error bool argument with ParseErrorType enum (Closed)

Created:
5 years, 10 months ago by adamk
Modified:
5 years, 10 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

Replace is_reference_error bool argument with ParseErrorType enum This avoids accidental coercion-to-bool when calling ReportMessage() in the parser (e.g., from pointer types), and as a bonus makes callsites easier to read. Committed: https://crrev.com/82368b17e9314ebea142fb56aaf08f4f938c69dd Cr-Commit-Position: refs/heads/master@{#26788}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review comments #

Total comments: 4

Patch Set 3 : Marja comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -90 lines) Patch
M src/globals.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/parser.h View 1 2 chunks +9 lines, -13 lines 0 comments Download
M src/parser.cc View 1 2 6 chunks +24 lines, -21 lines 0 comments Download
M src/preparse-data.h View 6 chunks +14 lines, -18 lines 0 comments Download
M src/preparse-data.cc View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M src/preparse-data-format.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/preparser.h View 6 chunks +13 lines, -17 lines 0 comments Download
M src/preparser.cc View 1 chunk +7 lines, -15 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
adamk
5 years, 10 months ago (2015-02-19 21:32:39 UTC) #2
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/939303002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/939303002/diff/1/src/parser.cc#newcode648 src/parser.cc:648: parser_->pending_error_is_reference_error_ = error_type == kReferenceError; Maybe change pending_error_is_reference_error_ ...
5 years, 10 months ago (2015-02-19 21:41:59 UTC) #3
adamk
https://codereview.chromium.org/939303002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/939303002/diff/1/src/parser.cc#newcode648 src/parser.cc:648: parser_->pending_error_is_reference_error_ = error_type == kReferenceError; On 2015/02/19 21:41:59, arv ...
5 years, 10 months ago (2015-02-19 22:03:31 UTC) #5
arv (Not doing code reviews)
Still LGTM
5 years, 10 months ago (2015-02-19 23:02:43 UTC) #6
marja
lgtm https://codereview.chromium.org/939303002/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/939303002/diff/20001/src/parser.cc#newcode4295 src/parser.cc:4295: pending_error_type_ == kReferenceError Can you add a static ...
5 years, 10 months ago (2015-02-20 09:11:47 UTC) #7
adamk
https://codereview.chromium.org/939303002/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/939303002/diff/20001/src/parser.cc#newcode4295 src/parser.cc:4295: pending_error_type_ == kReferenceError On 2015/02/20 09:11:47, marja wrote: > ...
5 years, 10 months ago (2015-02-20 20:23:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/939303002/40001
5 years, 10 months ago (2015-02-20 20:27:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/939303002/40001
5 years, 10 months ago (2015-02-20 20:27:36 UTC) #12
commit-bot: I haz the power
Failed to apply the patch.
5 years, 10 months ago (2015-02-20 21:19:45 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-20 21:19:48 UTC) #16
commit-bot: I haz the power
5 years, 10 months ago (2015-02-20 21:20:08 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/82368b17e9314ebea142fb56aaf08f4f938c69dd
Cr-Commit-Position: refs/heads/master@{#26788}

Powered by Google App Engine
This is Rietveld 408576698