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

Issue 2281073002: Create ScopeInfos while analyzing the Scope chain (Closed)

Created:
4 years, 3 months ago by jochen (gone - plz use gerrit)
Modified:
4 years, 3 months ago
CC:
v8-mips-ports_googlegroups.com, v8-ppc-ports_googlegroups.com, v8-reviews_googlegroups.com, v8-x87-ports_googlegroups.com, Yang
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Create ScopeInfos while analyzing the Scope chain Instead of creating them on demand all over the place. I plan to link ScopeInfos together, and having one place where all ScopeInfos are created will make this easier. R=verwaest@chromium.org,adamk@chromium.org TBR=mstarzinger@chromium.org BUG=v8:5215 Committed: https://crrev.com/0c3789fb6a55e5d900986f5172834ad666fcc072 Cr-Commit-Position: refs/heads/master@{#39003}

Patch Set 1 #

Patch Set 2 : updates #

Total comments: 1

Patch Set 3 : updates #

Patch Set 4 : updates #

Patch Set 5 : updates #

Patch Set 6 : updates #

Patch Set 7 : updates #

Total comments: 5

Patch Set 8 : updates #

Total comments: 4

Patch Set 9 : updates #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -83 lines) Patch
M src/ast/ast-numbering.cc View 2 chunks +0 lines, -14 lines 0 comments Download
M src/ast/scopes.h View 1 2 3 4 5 6 7 8 9 6 chunks +31 lines, -18 lines 0 comments Download
M src/ast/scopes.cc View 1 2 3 4 5 6 7 8 9 6 chunks +30 lines, -18 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/arm/lithium-codegen-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/arm64/lithium-codegen-arm64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/ia32/lithium-codegen-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/mips/lithium-codegen-mips.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/mips64/lithium-codegen-mips64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/ppc/lithium-codegen-ppc.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/s390/lithium-codegen-s390.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/x64/lithium-codegen-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/x87/lithium-codegen-x87.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/debug/debug-scopes.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -5 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/full-codegen.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/ppc/full-codegen-ppc.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/s390/full-codegen-s390.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/x87/full-codegen-x87.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/compiler/test-loop-assignment-analysis.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 74 (53 generated)
jochen (gone - plz use gerrit)
ptal still trying to work out why the bytecode generator doesn't like me
4 years, 3 months ago (2016-08-26 18:28:53 UTC) #15
adamk
https://codereview.chromium.org/2281073002/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2281073002/diff/20001/src/ast/scopes.cc#newcode1626 src/ast/scopes.cc:1626: scope->AllocateVariablesRecursively(isolate); For stack-allocated block-scoped variables, this may allocate some ...
4 years, 3 months ago (2016-08-26 18:41:08 UTC) #16
jochen (gone - plz use gerrit)
new version that recurses separately for creating scope infos
4 years, 3 months ago (2016-08-26 18:52:24 UTC) #19
jochen (gone - plz use gerrit)
+marja ptal
4 years, 3 months ago (2016-08-29 09:13:44 UTC) #37
jochen (gone - plz use gerrit)
most changes are replacing GetScopeInfo(isolate) with scope_info() https://codereview.chromium.org/2281073002/diff/120001/src/ast/ast-numbering.cc File src/ast/ast-numbering.cc (left): https://codereview.chromium.org/2281073002/diff/120001/src/ast/ast-numbering.cc#oldcode237 src/ast/ast-numbering.cc:237: if (FLAG_ignition ...
4 years, 3 months ago (2016-08-29 09:15:49 UTC) #38
marja
Code lgtm but does this regress? https://codereview.chromium.org/2281073002/diff/120001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2281073002/diff/120001/src/ast/scopes.cc#newcode1593 src/ast/scopes.cc:1593: // Allocate variables ...
4 years, 3 months ago (2016-08-29 09:26:25 UTC) #39
marja
https://codereview.chromium.org/2281073002/diff/140001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2281073002/diff/140001/src/ast/scopes.cc#newcode1590 src/ast/scopes.cc:1590: DCHECK(scope_info_.is_null()); Discussed offline: maybe we should create ScopeInfos only ...
4 years, 3 months ago (2016-08-29 10:49:30 UTC) #46
Toon Verwaest
https://codereview.chromium.org/2281073002/diff/140001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2281073002/diff/140001/src/ast/scopes.cc#newcode1591 src/ast/scopes.cc:1591: scope_info_ = ScopeInfo::Create(info->isolate(), zone(), this); Wut? We pass along ...
4 years, 3 months ago (2016-08-29 11:46:25 UTC) #47
Toon Verwaest
https://codereview.chromium.org/2281073002/diff/140001/src/debug/debug-scopes.cc File src/debug/debug-scopes.cc (left): https://codereview.chromium.org/2281073002/diff/140001/src/debug/debug-scopes.cc#oldcode118 src/debug/debug-scopes.cc:118: scope->AllocateVariables(info.get()); Can this be private then? Should Analyze be ...
4 years, 3 months ago (2016-08-29 11:48:58 UTC) #48
jochen (gone - plz use gerrit)
ptal https://codereview.chromium.org/2281073002/diff/140001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2281073002/diff/140001/src/ast/scopes.cc#newcode1591 src/ast/scopes.cc:1591: scope_info_ = ScopeInfo::Create(info->isolate(), zone(), this); On 2016/08/29 at ...
4 years, 3 months ago (2016-08-29 12:15:25 UTC) #49
Toon Verwaest
lgtm
4 years, 3 months ago (2016-08-30 09:13:11 UTC) #54
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/2281073002/160001
4 years, 3 months ago (2016-08-30 09:13:36 UTC) #57
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/22851)
4 years, 3 months ago (2016-08-30 09:16:26 UTC) #59
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/2281073002/180001
4 years, 3 months ago (2016-08-30 09:22:36 UTC) #62
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/22852)
4 years, 3 months ago (2016-08-30 09:26:26 UTC) #64
jochen (gone - plz use gerrit)
Michael, mind rubberstamping the compiler/ change?
4 years, 3 months ago (2016-08-30 09:29:43 UTC) #66
jochen (gone - plz use gerrit)
tbr'ing since it's a trivial api update
4 years, 3 months ago (2016-08-30 09:41:55 UTC) #69
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/2281073002/180001
4 years, 3 months ago (2016-08-30 09:42:09 UTC) #70
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-08-30 09:48:36 UTC) #71
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/0c3789fb6a55e5d900986f5172834ad666fcc072 Cr-Commit-Position: refs/heads/master@{#39003}
4 years, 3 months ago (2016-08-30 09:49:07 UTC) #73
Michael Starzinger
4 years, 3 months ago (2016-09-05 13:43:47 UTC) #74
Message was sent while issue was closed.
LGTM.

Powered by Google App Engine
This is Rietveld 408576698