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

Issue 1804783002: Remove Scope::scope_contains_with_ bit (Closed)

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

Description

Remove Scope::scope_contains_with_ bit This part of Scope has existed since V8's initial check in, but from what I can tell it's not required to implement "with". The only tests that depend upon it are tests of the debugger and the Scope mirrors, but the resulting test behavior after removing the bit still seems perfectly reasonable to me. In fact, with the included fix for scope name collection, the scope mirror is actually improved with this change. As a bi-product, this fixes the attached bug, about the contains_with bit having inconsistent values in some arrow function compilation scenarios. BUG=chromium:592353 LOG=n CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/108efd7f544e540cc741fdc3b74fcda650bf0728 Cr-Commit-Position: refs/heads/master@{#34802}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fix scope names and GCC build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -66 lines) Patch
M src/ast/scopes.h View 2 chunks +0 lines, -5 lines 0 comments Download
M src/ast/scopes.cc View 1 8 chunks +4 lines, -17 lines 0 comments Download
M src/debug/debug-scopes.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
M src/parsing/parser.cc View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/WithStatement.golden View 1 chunk +7 lines, -15 lines 0 comments Download
M test/mjsunit/debug-evaluate-locals.js View 1 chunk +4 lines, -5 lines 0 comments Download
M test/mjsunit/debug-function-scopes.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/debug-scopes.js View 1 12 chunks +12 lines, -13 lines 0 comments Download
A + test/mjsunit/regress/regress-592353.js View 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
adamk
Hi Yang, I've added comments for each test modification. As noted, the one that doesn't ...
4 years, 9 months ago (2016-03-14 22:22:11 UTC) #2
Yang
LGTM if the bug explained below is fixed. And please run LayoutTests before you commit. ...
4 years, 9 months ago (2016-03-15 06:53:48 UTC) #3
adamk
https://codereview.chromium.org/1804783002/diff/1/test/mjsunit/debug-scopes.js File test/mjsunit/debug-scopes.js (left): https://codereview.chromium.org/1804783002/diff/1/test/mjsunit/debug-scopes.js#oldcode870 test/mjsunit/debug-scopes.js:870: CheckScopeChainNames(["inner", "inner", "closure_in_with_2", "closure_in_with_2", undefined, undefined], exec_state) On 2016/03/15 ...
4 years, 9 months ago (2016-03-15 17:45:46 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804783002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804783002/20001
4 years, 9 months ago (2016-03-15 21:44:36 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-15 22:41:20 UTC) #11
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 22:42:11 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/108efd7f544e540cc741fdc3b74fcda650bf0728
Cr-Commit-Position: refs/heads/master@{#34802}

Powered by Google App Engine
This is Rietveld 408576698