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

Issue 1024703004: Cleanups needed for this-scoping in arrow functions (Closed)

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

Cleanups needed for this-scoping in arrow functions Remove Variable::IsValidReference(), and the Variable::is_valid_ref_ member: This was "false" only for "this", and for internal variables. For the first, VariableProxy::is_this() can be used for the check instead; and for internal variables, it is guaranteed they they will not be written to (because the V8 code does not do it, and they are not accessible from JavaScript). The "bool is_this" parameter of VariableProxy() constructor is changed to use Variable::Kind. This will allow to later on adding a parameter to create unresolved variables of any kind, which in turn will be used to make references to "this" initially unresolved, and use the existing variable resolution mechanics for "this". BUG=v8:2700 LOG=N Committed: https://crrev.com/00844d466be3d809b95d439fdd14566601780458 Cr-Commit-Position: refs/heads/master@{#27404}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed codegen bits and Scope::has_this_declaration() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -48 lines) Patch
M src/ast.h View 3 chunks +7 lines, -7 lines 0 comments Download
M src/ast.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M src/parser.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M src/scopes.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M src/scopes.cc View 13 chunks +11 lines, -19 lines 0 comments Download
M src/variables.h View 2 chunks +2 lines, -7 lines 0 comments Download
M src/variables.cc View 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
aperez
5 years, 9 months ago (2015-03-23 14:13:10 UTC) #2
wingo
Some nits. Regarding the log, LOG=N I think as it's just a refactor, and do ...
5 years, 9 months ago (2015-03-23 15:11:14 UTC) #3
aperez
On 2015/03/23 15:11:14, wingo wrote: > Some nits. Regarding the log, LOG=N I think as ...
5 years, 9 months ago (2015-03-23 18:49:44 UTC) #4
wingo
non-owner LGTM with nit. The nit is to trim the log further, keeping only the ...
5 years, 9 months ago (2015-03-24 08:50:21 UTC) #5
aperez
5 years, 9 months ago (2015-03-24 09:22:25 UTC) #7
arv (Not doing code reviews)
LGTM
5 years, 9 months ago (2015-03-24 11:03:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024703004/20001
5 years, 9 months ago (2015-03-24 12:46:43 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-24 13:08:31 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-24 13:08:44 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/00844d466be3d809b95d439fdd14566601780458
Cr-Commit-Position: refs/heads/master@{#27404}

Powered by Google App Engine
This is Rietveld 408576698