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

Issue 2061173002: [cleanup] Remove dead code from DeclareLookupSlot and rename it (Closed)

Created:
4 years, 6 months ago by adamk
Modified:
4 years, 6 months ago
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, rmcilroy, v8-ppc-ports_googlegroups.com, oth, jwolfe
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[cleanup] Remove dead code from DeclareLookupSlot and rename it Runtime_DeclareLookupSlot is used when generating code for var and function declarations originating in an eval. Over time, it's accumulated quite a bit of cruft, which this CL removes: - With legacy const gone, lookup slots never have any property attributes. - There was a bit signaling that the variable was from an eval, but that was redundant since DeclareLookupSlot is only used for eval. - Some Proxy-related code didn't make sense here. Its name was also not terribly clear: while "LookupSlot" is used in several places, this particular function is only used for declaring variables and functions inside sloppy eval. Renamed (and split into two) to make this clear for future archeologists. Also added various DCHECKs to check the assumptions being made. Committed: https://crrev.com/cbc6adc86cc2697785d311ff5bf9f736c7d9e725 Cr-Commit-Position: refs/heads/master@{#37111}

Patch Set 1 #

Patch Set 2 : Fix mips64 #

Patch Set 3 : Extend context DCHECK #

Total comments: 4

Patch Set 4 : Fix ignition registers #

Patch Set 5 : Rename for clarity #

Total comments: 6

Patch Set 6 : Handled review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -180 lines) Patch
M src/ast/variables.h View 2 chunks +0 lines, -16 lines 0 comments Download
M src/ast/variables.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 4 2 chunks +4 lines, -10 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 4 2 chunks +5 lines, -9 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 4 2 chunks +5 lines, -9 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 4 2 chunks +4 lines, -9 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 4 2 chunks +5 lines, -10 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 4 2 chunks +5 lines, -10 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 4 2 chunks +4 lines, -8 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 2 chunks +8 lines, -19 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M src/property-details.h View 1 chunk +0 lines, -5 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 1 chunk +25 lines, -24 lines 0 comments Download
M src/runtime/runtime-scopes.cc View 1 2 3 4 5 3 chunks +35 lines, -47 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
adamk
4 years, 6 months ago (2016-06-14 09:29:51 UTC) #3
Michael Starzinger
LGTM with comments. https://codereview.chromium.org/2061173002/diff/40001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2061173002/diff/40001/src/interpreter/bytecode-generator.cc#newcode763 src/interpreter/bytecode-generator.cc:763: register_allocator()->PrepareForConsecutiveAllocations(3); nit: s/3/2/ here, only two ...
4 years, 6 months ago (2016-06-14 11:11:37 UTC) #4
adamk
Thanks for the review. Toon, do you want to take a look before I land? ...
4 years, 6 months ago (2016-06-14 11:23:07 UTC) #5
adamk
As discussed with Toon offline, I've done some more work to clarify the use of ...
4 years, 6 months ago (2016-06-14 14:43:05 UTC) #7
Michael Starzinger
LGTM with nits. I like the two new runtime functions. Good idea. https://codereview.chromium.org/2061173002/diff/80001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc ...
4 years, 6 months ago (2016-06-14 14:47:32 UTC) #8
adamk
https://codereview.chromium.org/2061173002/diff/80001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2061173002/diff/80001/src/interpreter/bytecode-generator.cc#newcode763 src/interpreter/bytecode-generator.cc:763: register_allocator()->PrepareForConsecutiveAllocations(1); On 2016/06/14 14:47:32, Michael Starzinger wrote: > nit: ...
4 years, 6 months ago (2016-06-14 14:59:43 UTC) #9
Toon Verwaest
nice cleanup! lgtm
4 years, 6 months ago (2016-06-20 14:41:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2061173002/100001
4 years, 6 months ago (2016-06-20 16:30:05 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-20 16:59:01 UTC) #15
commit-bot: I haz the power
4 years, 6 months ago (2016-06-20 17:00:58 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/cbc6adc86cc2697785d311ff5bf9f736c7d9e725
Cr-Commit-Position: refs/heads/master@{#37111}

Powered by Google App Engine
This is Rietveld 408576698