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

Issue 2302013002: Store the scope info in catch contexts (Closed)

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

Description

Store the scope info in catch contexts Since the extension field is already used for the catch name, store a ContextExtension there instead. In the future, this will allow for chaining ScopeInfos together, so we no longer need a context chain for lazy parsing / compilation. BUG=v8:5215 R=bmeurer@chromium.org,neis@chromium.org,marja@chromium.org Committed: https://crrev.com/9b6ff3a8f698eeef5f24d5403709ca6fb3251914 Cr-Commit-Position: refs/heads/master@{#39164}

Patch Set 1 #

Total comments: 5

Patch Set 2 : updates #

Total comments: 14

Patch Set 3 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -148 lines) Patch
M src/ast/scopes.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/ast/scopes.cc View 1 2 chunks +8 lines, -2 lines 0 comments Download
M src/compiler/access-builder.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/access-builder.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/compiler/js-create-lowering.cc View 1 2 2 chunks +14 lines, -3 lines 0 comments Download
M src/compiler/js-generic-lowering.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M src/compiler/js-operator.h View 1 2 2 chunks +29 lines, -1 line 0 comments Download
M src/compiler/js-operator.cc View 2 chunks +35 lines, -4 lines 0 comments Download
M src/contexts.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M src/factory.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/factory.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/full-codegen/full-codegen.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-generator.h View 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/interpreter.cc View 1 2 1 chunk +8 lines, -5 lines 0 comments Download
M src/runtime/runtime.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-scopes.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOf.golden View 1 20 chunks +66 lines, -58 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 1 7 chunks +19 lines, -17 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/TryCatch.golden View 6 chunks +16 lines, -13 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/TryFinally.golden View 8 chunks +17 lines, -14 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M test/unittests/compiler/js-create-lowering-unittest.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (13 generated)
jochen (gone - plz use gerrit)
ptal
4 years, 3 months ago (2016-09-01 14:35:48 UTC) #3
marja
(I read through this CL, but I can't really tell if it's correct or not. ...
4 years, 3 months ago (2016-09-02 07:39:35 UTC) #6
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2302013002/diff/1/src/compiler/js-operator.h File src/compiler/js-operator.h (right): https://codereview.chromium.org/2302013002/diff/1/src/compiler/js-operator.h#newcode191 src/compiler/js-operator.h:191: Handle<String> const catch_name_; On 2016/09/02 at 07:39:35, marja wrote: ...
4 years, 3 months ago (2016-09-02 08:27:15 UTC) #7
neis
lgtm, didn't look at compiler
4 years, 3 months ago (2016-09-02 09:09:46 UTC) #8
jochen (gone - plz use gerrit)
+mstarzinger for all the things Georg/Marja, I also hooked up the now available ScopeInfo to ...
4 years, 3 months ago (2016-09-02 09:20:29 UTC) #12
marja
https://codereview.chromium.org/2302013002/diff/1/src/compiler/js-operator.h File src/compiler/js-operator.h (right): https://codereview.chromium.org/2302013002/diff/1/src/compiler/js-operator.h#newcode202 src/compiler/js-operator.h:202: std::ostream& operator<<(std::ostream&, CreateCatchContextParameters const&); On 2016/09/02 08:27:15, jochen wrote: ...
4 years, 3 months ago (2016-09-02 09:34:55 UTC) #13
marja
ast/ LGTM
4 years, 3 months ago (2016-09-02 09:55:47 UTC) #16
rmcilroy
interpreter/ LGTM
4 years, 3 months ago (2016-09-05 09:56:08 UTC) #18
Michael Starzinger
LGTM with comments ans nits to address. https://codereview.chromium.org/2302013002/diff/20001/src/compiler/access-builder.cc File src/compiler/access-builder.cc (right): https://codereview.chromium.org/2302013002/diff/20001/src/compiler/access-builder.cc#newcode747 src/compiler/access-builder.cc:747: FieldAccess AccessBuilder::ForContextExtensionScopeInfo() ...
4 years, 3 months ago (2016-09-05 11:35:29 UTC) #19
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2302013002/diff/20001/src/compiler/access-builder.cc File src/compiler/access-builder.cc (right): https://codereview.chromium.org/2302013002/diff/20001/src/compiler/access-builder.cc#newcode747 src/compiler/access-builder.cc:747: FieldAccess AccessBuilder::ForContextExtensionScopeInfo() { On 2016/09/05 at 11:35:29, Michael Starzinger ...
4 years, 3 months ago (2016-09-05 11:42:45 UTC) #20
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/2302013002/40001
4 years, 3 months ago (2016-09-05 11:42:57 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-05 12:10:20 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-05 12:10:58 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9b6ff3a8f698eeef5f24d5403709ca6fb3251914
Cr-Commit-Position: refs/heads/master@{#39164}

Powered by Google App Engine
This is Rietveld 408576698