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

Issue 2232633002: Function name variable does not need a VariableDeclaration (Closed)

Created:
4 years, 4 months ago by adamk
Modified:
4 years, 4 months ago
Reviewers:
neis, Toon Verwaest
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Function name variable does not need a VariableDeclaration This changes Scope::function_ (for holding the name binding for named function expression) from a VariableDeclaration to a Variable. No work is done when visiting this declaration, since it's kCreatedInitialized, so we can treat it like other function-specific variables. This simplifies a wide variety of code, and centralizes the logic for constructing the variable inside scopes.cc. This may one day make it easier to eliminate the CONST_LEGACY VariableMode. R=neis@chromium.org, verwaest@chromium.org BUG=v8:5209 Committed: https://crrev.com/73b0f15714755c61afbdd3fb3728c5155cc31baa Cr-Commit-Position: refs/heads/master@{#38558}

Patch Set 1 #

Patch Set 2 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -71 lines) Patch
M src/ast/scopeinfo.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M src/ast/scopes.h View 1 3 chunks +4 lines, -11 lines 0 comments Download
M src/ast/scopes.cc View 1 10 chunks +31 lines, -41 lines 0 comments Download
M src/parsing/parser.cc View 1 1 chunk +1 line, -12 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
adamk
4 years, 4 months ago (2016-08-10 00:07:10 UTC) #1
adamk
Amusingly, it seems this became a VariableDeclaration as part of a refactoring "in preparation for ...
4 years, 4 months ago (2016-08-10 00:11:09 UTC) #4
Toon Verwaest
nice! lgtm
4 years, 4 months ago (2016-08-10 04:38:08 UTC) #7
neis
lgtm
4 years, 4 months ago (2016-08-10 09:38:47 UTC) #8
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/2232633002/1
4 years, 4 months ago (2016-08-10 17:32:39 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/21561)
4 years, 4 months ago (2016-08-10 17:34:56 UTC) #12
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/2232633002/20001
4 years, 4 months ago (2016-08-10 17:46:19 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-10 18:45:34 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 18:46:05 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/73b0f15714755c61afbdd3fb3728c5155cc31baa
Cr-Commit-Position: refs/heads/master@{#38558}

Powered by Google App Engine
This is Rietveld 408576698