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

Issue 2233673003: Remove CONST_LEGACY VariableMode (Closed)

Created:
4 years, 4 months ago by adamk
Modified:
4 years, 3 months ago
CC:
v8-reviews_googlegroups.com, oth, rmcilroy, Benedikt Meurer
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Remove CONST_LEGACY VariableMode The only remaining use of this VariableMode is for the names of sloppy named function expressions. This patch instead uses CONST for such bindings (just as we do in strict mode) and instead marks those Variables specially. During code generation a new helper method, Variable::throw_on_const_assignment(), is called to decide whether to throw or silently ignore the assignment. Committed: https://crrev.com/7516fe1eaa7910015d7732a1aa34e45e3e37586c Cr-Commit-Position: refs/heads/master@{#39052}

Patch Set 1 #

Total comments: 9

Patch Set 2 : More explicit TurboFan handling #

Patch Set 3 : Rebased #

Patch Set 4 : Ports #

Patch Set 5 : Fix arm64 #

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -195 lines) Patch
M src/asmjs/asm-typer.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M src/asmjs/asm-wasm-builder.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/ast/scopeinfo.cc View 1 2 3 4 5 6 chunks +1 line, -10 lines 0 comments Download
M src/ast/scopes.cc View 1 2 3 4 5 4 chunks +8 lines, -10 lines 0 comments Download
M src/ast/variables.h View 1 2 3 4 5 3 chunks +9 lines, -3 lines 0 comments Download
M src/ast/variables.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M src/bailout-reason.h View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 4 5 5 chunks +23 lines, -20 lines 0 comments Download
M src/compiler/js-global-object-specialization.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/contexts.cc View 1 2 3 4 5 3 chunks +7 lines, -7 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 4 5 5 chunks +6 lines, -27 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 4 5 3 chunks +5 lines, -11 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 4 5 3 chunks +5 lines, -11 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 4 5 3 chunks +5 lines, -11 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 4 5 3 chunks +5 lines, -11 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 4 5 3 chunks +5 lines, -11 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 4 5 3 chunks +5 lines, -11 lines 0 comments Download
M src/globals.h View 1 2 3 4 5 2 chunks +0 lines, -7 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 3 chunks +8 lines, -22 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M src/parsing/pattern-rewriter.cc View 1 2 3 4 5 1 chunk +0 lines, -7 lines 0 comments Download
M src/profiler/heap-snapshot-generator.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 58 (35 generated)
adamk
I'm not entirely sure this is worthwhile (it removes a bit of cognitive overhead but ...
4 years, 4 months ago (2016-08-11 00:56:42 UTC) #2
adamk
https://codereview.chromium.org/2233673003/diff/1/src/contexts.cc File src/contexts.cc (right): https://codereview.chromium.org/2233673003/diff/1/src/contexts.cc#newcode312 src/contexts.cc:312: if (follow_context_chain && (flags & STOP_AT_DECLARATION_SCOPE) == 0 && ...
4 years, 4 months ago (2016-08-11 01:02:39 UTC) #5
Michael Starzinger
+Benedikt, as he also reviewed earlier changes related to variable loading and assignment in the ...
4 years, 4 months ago (2016-08-11 14:54:09 UTC) #9
Benedikt Meurer
+Toon, +Georg
4 years, 4 months ago (2016-08-12 03:35:21 UTC) #12
adamk
The only feedback I've heard on this so far has been mildly negative, so unless ...
4 years, 4 months ago (2016-08-15 17:50:31 UTC) #13
neis
lgtm On 2016/08/15 17:50:31, adamk wrote: > The only feedback I've heard on this so ...
4 years, 4 months ago (2016-08-17 10:50:59 UTC) #14
Toon Verwaest
I like this change as well. https://codereview.chromium.org/2233673003/diff/1/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/2233673003/diff/1/src/compiler/ast-graph-builder.cc#newcode3456 src/compiler/ast-graph-builder.cc:3456: } else if ...
4 years, 4 months ago (2016-08-18 07:05:27 UTC) #15
adamk
I haven't made Toon's suggestions, as I'd like to get feedback from compiler/ OWNERS. The ...
4 years, 4 months ago (2016-08-18 18:40:19 UTC) #16
rmcilroy
I'm not a compiler/ owner, but I like the changes in interpreter/
4 years, 4 months ago (2016-08-19 08:56:00 UTC) #22
adamk
Ported to various architectures for completeness. bmeurer & mstarzinger, any thoughts? What do you think ...
4 years, 4 months ago (2016-08-19 21:58:19 UTC) #29
adamk
Ping bmeurer (now that you're back from vacation :)
4 years, 3 months ago (2016-08-26 18:27:48 UTC) #32
Benedikt Meurer
LGTM.
4 years, 3 months ago (2016-08-29 05:02:21 UTC) #33
adamk
+bradnelson for asmjs/ (which just picked up a dependency on CONST_LEGACY) Toon, let me know ...
4 years, 3 months ago (2016-08-31 00:23:54 UTC) #35
bradnelson
lgtm for asmjs
4 years, 3 months ago (2016-08-31 00:39:45 UTC) #36
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/2233673003/100001
4 years, 3 months ago (2016-08-31 17:38:55 UTC) #39
commit-bot: I haz the power
All required reviewers (with asterisk prefixes) have not yet approved this CL. No L-G-T-M from ...
4 years, 3 months ago (2016-08-31 17:38:58 UTC) #41
verwaest1
lgtm
4 years, 3 months ago (2016-08-31 18:20:57 UTC) #43
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/2233673003/100001
4 years, 3 months ago (2016-08-31 18:22:05 UTC) #45
commit-bot: I haz the power
All required reviewers (with asterisk prefixes) have not yet approved this CL. No L-G-T-M from ...
4 years, 3 months ago (2016-08-31 18:22:08 UTC) #47
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/2233673003/100001
4 years, 3 months ago (2016-08-31 18:22:53 UTC) #52
Toon Verwaest
lgtm
4 years, 3 months ago (2016-08-31 18:23:56 UTC) #54
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-08-31 18:49:59 UTC) #56
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 18:50:37 UTC) #58
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7516fe1eaa7910015d7732a1aa34e45e3e37586c
Cr-Commit-Position: refs/heads/master@{#39052}

Powered by Google App Engine
This is Rietveld 408576698