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

Issue 2166843003: Allocate block scopes in block states when possible (Closed)

Created:
4 years, 5 months ago by Toon Verwaest
Modified:
4 years, 4 months ago
Reviewers:
adamk, marja
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

Allocate block scopes in block states when possible This is another step towards lazily allocating them in the block state. ClassLiteral should also have a lazy block-scope for the outermost scope, but currently that doesn't work due to the parameter initializer rewriter and minor implementation details in ignition and turbofan. BUG=v8:5209 Committed: https://crrev.com/e9887b6aad65f76d78d55a3e6b29b37c736b4e6a Cr-Commit-Position: refs/heads/master@{#38196}

Patch Set 1 #

Patch Set 2 : revert #

Patch Set 3 : another one #

Total comments: 8

Patch Set 4 : rebase #

Patch Set 5 : Addressed comments #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -90 lines) Patch
M src/parsing/parser.cc View 1 2 3 4 5 20 chunks +56 lines, -70 lines 0 comments Download
M src/parsing/parser-base.h View 1 2 3 4 5 3 chunks +28 lines, -4 lines 0 comments Download
M src/parsing/preparser.cc View 1 2 3 4 5 8 chunks +10 lines, -16 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
Toon Verwaest
ptal
4 years, 5 months ago (2016-07-21 14:50:36 UTC) #2
adamk
https://codereview.chromium.org/2166843003/diff/40001/src/parsing/parser-base.h File src/parsing/parser-base.h (right): https://codereview.chromium.org/2166843003/diff/40001/src/parsing/parser-base.h#newcode299 src/parsing/parser-base.h:299: class BlockState final : public ScopeState { Can you ...
4 years, 5 months ago (2016-07-21 17:48:05 UTC) #4
marja
lgtm once you've sorted out adamk@'s comments. https://codereview.chromium.org/2166843003/diff/40001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2166843003/diff/40001/src/parsing/parser.cc#newcode2310 src/parsing/parser.cc:2310: body->set_scope(block_state.FinalizedBlockScope()); On ...
4 years, 5 months ago (2016-07-22 07:17:00 UTC) #5
Toon Verwaest
Addressed comments. I held off on changing set_block, even though I agree that it's a ...
4 years, 5 months ago (2016-07-22 11:02:53 UTC) #6
adamk
lgtm As for the scariness, we could add a debug-only field to Scope that detects ...
4 years, 5 months ago (2016-07-22 22:44:09 UTC) #7
marja
I generally like that idea :) We should tie our hands as much as possible ...
4 years, 5 months ago (2016-07-25 07:53:29 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/2166843003/100001
4 years, 4 months ago (2016-08-01 08:28:18 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: v8_android_arm_compile_rel on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/21819) v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 4 months ago (2016-08-01 08:29:28 UTC) #13
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/2166843003/120001
4 years, 4 months ago (2016-08-01 08:31:49 UTC) #16
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-01 09:04:19 UTC) #18
commit-bot: I haz the power
4 years, 4 months ago (2016-08-01 09:05:19 UTC) #20
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e9887b6aad65f76d78d55a3e6b29b37c736b4e6a
Cr-Commit-Position: refs/heads/master@{#38196}

Powered by Google App Engine
This is Rietveld 408576698