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

Issue 2399833002: Teach Scopes whether they will end up being lazily compiled or not (Closed)

Created:
4 years, 2 months ago by jochen (gone - plz use gerrit)
Modified:
4 years, 2 months ago
Reviewers:
Toon Verwaest, marja
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Teach Scopes whether they will end up being lazily compiled or not For now keep the logic in compiler.cc and add a DCHECK that the scopes and compiler.cc agree. Use this knowledge to only created ScopeInfos for literals we'll actually compile. BUG=v8:5394, v8:5422 R=marja@chromium.org,verwaest@chromium.org Committed: https://crrev.com/940efafd3d9989ca6baedb232ace979bef699d7b Cr-Commit-Position: refs/heads/master@{#40074}

Patch Set 1 #

Total comments: 13

Patch Set 2 : updates #

Patch Set 3 : updates #

Patch Set 4 : updates #

Patch Set 5 : updates #

Total comments: 8

Patch Set 6 : updates #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -63 lines) Patch
M src/ast/ast.h View 1 2 3 3 chunks +4 lines, -9 lines 0 comments Download
M src/ast/ast.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M src/ast/scopes.h View 1 2 3 4 3 chunks +8 lines, -1 line 0 comments Download
M src/ast/scopes.cc View 1 2 3 4 5 6 5 chunks +36 lines, -1 line 0 comments Download
M src/compilation-info.h View 1 2 3 4 chunks +6 lines, -5 lines 0 comments Download
M src/compilation-info.cc View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 4 chunks +8 lines, -22 lines 0 comments Download
M src/parsing/parse-info.h View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 5 3 chunks +23 lines, -3 lines 0 comments Download
M src/parsing/parser-base.h View 1 2 3 4 5 9 chunks +21 lines, -20 lines 0 comments Download
M src/parsing/preparser.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (25 generated)
jochen (gone - plz use gerrit)
4 years, 2 months ago (2016-10-06 11:25:25 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2399833002/diff/1/src/parsing/parser-base.h File src/parsing/parser-base.h (left): https://codereview.chromium.org/2399833002/diff/1/src/parsing/parser-base.h#oldcode232 src/parsing/parser-base.h:232: // clang-format off we shouldn't randomly disable clang-format, but ...
4 years, 2 months ago (2016-10-06 11:30:15 UTC) #2
marja
generally lg https://codereview.chromium.org/2399833002/diff/1/src/ast/ast.cc File src/ast/ast.cc (right): https://codereview.chromium.org/2399833002/diff/1/src/ast/ast.cc#newcode292 src/ast/ast.cc:292: scope()->SetShouldCompileLazily(false); FunctionLiteral::set_should_eagerly_compile but Scope::SetShouldCompileLazily? Would it be ...
4 years, 2 months ago (2016-10-06 11:53:06 UTC) #3
jochen (gone - plz use gerrit)
ptal https://codereview.chromium.org/2399833002/diff/1/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2399833002/diff/1/src/ast/scopes.cc#newcode1924 src/ast/scopes.cc:1924: isolate, scope->is_function_scope() ? AnalyzeMode::kRegular : mode, On 2016/10/06 ...
4 years, 2 months ago (2016-10-06 15:05:04 UTC) #6
jochen (gone - plz use gerrit)
perf results (https://storage.cloud.google.com/chrome-v8/perf-try/2399833002/80001/v8_linux64_perf_try_1475773908.32.html) are kinda inconclusive (which is what I expected - this change should ...
4 years, 2 months ago (2016-10-06 17:17:25 UTC) #21
jochen (gone - plz use gerrit)
e.g. splay and splay latency go up a bit in octane, and down a bit ...
4 years, 2 months ago (2016-10-06 17:18:26 UTC) #22
marja
https://codereview.chromium.org/2399833002/diff/1/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/2399833002/diff/1/src/compiler.cc#newcode1434 src/compiler.cc:1434: info->parse_info()->set_will_serialize(false); Offline discussion: this code for resetting the flag ...
4 years, 2 months ago (2016-10-07 08:25:59 UTC) #23
marja
(lgtm % previous comments)
4 years, 2 months ago (2016-10-07 08:27:48 UTC) #24
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2399833002/diff/80001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2399833002/diff/80001/src/ast/scopes.cc#newcode1929 src/ast/scopes.cc:1929: // scope, we can go back to the regular ...
4 years, 2 months ago (2016-10-07 08:34:37 UTC) #26
marja
still lgtm
4 years, 2 months ago (2016-10-07 08:46:01 UTC) #32
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/2399833002/120001
4 years, 2 months ago (2016-10-07 08:46:40 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-07 09:12:52 UTC) #36
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 09:13:13 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/940efafd3d9989ca6baedb232ace979bef699d7b
Cr-Commit-Position: refs/heads/master@{#40074}

Powered by Google App Engine
This is Rietveld 408576698