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

Issue 1404793004: Add support for calculating a scopes maximum nested context chain. (Closed)

Created:
5 years, 2 months ago by rmcilroy
Modified:
5 years, 2 months ago
Reviewers:
adamk
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

Add support for calculating a scopes maximum nested context chain. Adds Scope::MaxNestedContextChainLength() which calculates the maximum length of the context chain for the given scope. This is used by the interpreter to preallocate the approprate number of context registers when compiling the function. BUG=v8:4280 LOG=N Committed: https://crrev.com/d820268c0ba9536f3289206e2d928aa7e9436037 Cr-Commit-Position: refs/heads/master@{#31309}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -8 lines) Patch
M src/interpreter/bytecode-generator.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M src/scopes.h View 2 chunks +10 lines, -1 line 0 comments Download
M src/scopes.cc View 1 chunk +15 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1404793004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1404793004/20001
5 years, 2 months ago (2015-10-14 16:41:07 UTC) #3
rmcilroy
Adam, could you take a look please. I'm not very failure with the parser - ...
5 years, 2 months ago (2015-10-14 16:42:11 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-14 17:34:52 UTC) #7
adamk
https://codereview.chromium.org/1404793004/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1404793004/diff/20001/src/interpreter/bytecode-generator.cc#newcode155 src/interpreter/bytecode-generator.cc:155: builder()->set_context_count(scope()->MaxNestedContextChainLength()); Is this exercised by any tests (I'm not ...
5 years, 2 months ago (2015-10-15 07:38:45 UTC) #8
rmcilroy
https://codereview.chromium.org/1404793004/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1404793004/diff/20001/src/interpreter/bytecode-generator.cc#newcode155 src/interpreter/bytecode-generator.cc:155: builder()->set_context_count(scope()->MaxNestedContextChainLength()); On 2015/10/15 07:38:44, adamk wrote: > Is this ...
5 years, 2 months ago (2015-10-15 09:23:07 UTC) #9
adamk
https://codereview.chromium.org/1404793004/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1404793004/diff/20001/src/interpreter/bytecode-generator.cc#newcode155 src/interpreter/bytecode-generator.cc:155: builder()->set_context_count(scope()->MaxNestedContextChainLength()); On 2015/10/15 09:23:07, rmcilroy wrote: > On 2015/10/15 ...
5 years, 2 months ago (2015-10-15 09:34:32 UTC) #10
rmcilroy
https://codereview.chromium.org/1404793004/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1404793004/diff/20001/src/interpreter/bytecode-generator.cc#newcode155 src/interpreter/bytecode-generator.cc:155: builder()->set_context_count(scope()->MaxNestedContextChainLength()); On 2015/10/15 09:34:32, adamk wrote: > On 2015/10/15 ...
5 years, 2 months ago (2015-10-15 14:06:16 UTC) #11
adamk
lgtm
5 years, 2 months ago (2015-10-15 14:16:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1404793004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1404793004/40001
5 years, 2 months ago (2015-10-15 14:36:22 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 2 months ago (2015-10-15 15:44:00 UTC) #15
commit-bot: I haz the power
5 years, 2 months ago (2015-10-15 15:44:25 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d820268c0ba9536f3289206e2d928aa7e9436037
Cr-Commit-Position: refs/heads/master@{#31309}

Powered by Google App Engine
This is Rietveld 408576698