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

Issue 1260053004: Create function name const assignment after parsing language mode. (Closed)

Created:
5 years, 4 months ago by Yang
Modified:
5 years, 2 months ago
Reviewers:
mvstanton, rossberg, adamk
CC:
v8-dev, rossberg
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Create function name const assignment after parsing language mode. Otherwise we may choose sloppy const or strict const depending on whether the function is parsed the first time. R=mvstanton@chromium.org BUG=v8:4336 LOG=N Committed: https://crrev.com/f7d808847feaa87f1635dd64650790d8b0d42021 Cr-Commit-Position: refs/heads/master@{#29966}

Patch Set 1 #

Total comments: 1

Patch Set 2 : replace 0 by constant #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -62 lines) Patch
M src/objects.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-debug.cc View 1 chunk +51 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/parser.h View 3 chunks +8 lines, -9 lines 0 comments Download
M src/parser.cc View 1 4 chunks +46 lines, -39 lines 1 comment Download
M src/preparser.h View 5 chunks +13 lines, -14 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
Yang
5 years, 4 months ago (2015-07-31 09:46:27 UTC) #1
mvstanton
Just one comment, and Andreas should generally agree that it's a sane idea :) LGTM. ...
5 years, 4 months ago (2015-07-31 09:56:26 UTC) #2
Yang
Fixed nit. Andreas, do you have any comments?
5 years, 4 months ago (2015-07-31 10:26:20 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260053004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260053004/20001
5 years, 4 months ago (2015-07-31 10:47:13 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-07-31 11:11:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260053004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260053004/20001
5 years, 4 months ago (2015-08-03 08:48:42 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 4 months ago (2015-08-03 09:14:25 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/f7d808847feaa87f1635dd64650790d8b0d42021 Cr-Commit-Position: refs/heads/master@{#29966}
5 years, 4 months ago (2015-08-03 09:14:34 UTC) #13
rossberg
https://codereview.chromium.org/1260053004/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1260053004/diff/20001/src/parser.cc#newcode4436 src/parser.cc:4436: VariableMode fvar_mode = use_strict_const ? CONST : CONST_LEGACY; Wait, ...
5 years, 4 months ago (2015-08-04 09:47:36 UTC) #14
adamk
On 2015/08/04 09:47:36, rossberg wrote: > https://codereview.chromium.org/1260053004/diff/20001/src/parser.cc > File src/parser.cc (right): > > https://codereview.chromium.org/1260053004/diff/20001/src/parser.cc#newcode4436 > ...
5 years, 2 months ago (2015-10-09 22:24:28 UTC) #15
adamk
5 years, 2 months ago (2015-10-09 23:11:41 UTC) #16
Message was sent while issue was closed.
On 2015/10/09 22:24:28, adamk wrote:
> On 2015/08/04 09:47:36, rossberg wrote:
> > https://codereview.chromium.org/1260053004/diff/20001/src/parser.cc
> > File src/parser.cc (right):
> > 
> >
>
https://codereview.chromium.org/1260053004/diff/20001/src/parser.cc#newcode4436
> > src/parser.cc:4436: VariableMode fvar_mode = use_strict_const ? CONST :
> > CONST_LEGACY;
> > Wait, I thought the idea was that this should always be CONST. In which case
> you
> > don't need to bother deferring the creation of the declaration.
> 
> Did this question get resolved? I happened to be looking at this code today
and
> found it very strange-looking. Anything that'd make it less strange seems like
> it'd be nice.

Actually, I resolved it myself. Even in ES6, this needs CONST_LEGACY-like
behavior, see https://code.google.com/p/v8/issues/detail?id=4482

Powered by Google App Engine
This is Rietveld 408576698