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

Issue 1895973002: Remove all non-function-name uses of CONST_LEGACY (Closed)

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

Description

Remove all non-function-name uses of CONST_LEGACY Now that all 'const' declarations are of the ES2015 variety, the only use of CONST_LEGACY is for function name bindings in sloppy mode named function expressions. This patch aims to delete all code meant to handle other cases, which mostly had to do with hole initialization/hole checks. Since function name bindings are initialized at entry to a function, it's impossible to ever observe one in an uninitialized state. To simplify the patch further, it removes the `IMPORT` VariableMode, as it's not likely to be needed (IMPORT is identical to CONST for the purpose of VariableMode). Committed: https://crrev.com/59546149c600a2262339e82b6d24e407a71e7a98 Cr-Commit-Position: refs/heads/master@{#35632}

Patch Set 1 #

Patch Set 2 : Remove Runtime::kInitializeLegacyConstLookupSlot #

Patch Set 3 : Fix ignition #

Total comments: 4

Patch Set 4 : Remove now-unused bits in TF and CS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -528 lines) Patch
M src/ast/ast.h View 1 chunk +1 line, -1 line 0 comments Download
M src/ast/variables.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/ast-graph-builder.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 7 chunks +5 lines, -41 lines 0 comments Download
M src/contexts.h View 1 chunk +9 lines, -19 lines 0 comments Download
M src/contexts.cc View 3 chunks +9 lines, -15 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 4 chunks +11 lines, -14 lines 0 comments Download
M src/crankshaft/hydrogen-instructions.h View 1 2 3 2 chunks +2 lines, -7 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 5 chunks +7 lines, -36 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 5 chunks +6 lines, -34 lines 0 comments Download
M src/full-codegen/full-codegen.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 5 chunks +5 lines, -34 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 5 chunks +7 lines, -37 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 5 chunks +7 lines, -37 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 5 chunks +5 lines, -34 lines 0 comments Download
M src/globals.h View 1 chunk +15 lines, -18 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 7 chunks +29 lines, -75 lines 0 comments Download
M src/parsing/parser.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M src/runtime/runtime.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/runtime-scopes.cc View 1 5 chunks +5 lines, -99 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ThisFunction.golden View 2 chunks +6 lines, -21 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
adamk
4 years, 8 months ago (2016-04-18 21:42:26 UTC) #2
Michael Starzinger
LGTM, love it, just one actionable comment about BuildHoleCheckSilent. https://codereview.chromium.org/1895973002/diff/40001/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (left): https://codereview.chromium.org/1895973002/diff/40001/src/compiler/ast-graph-builder.cc#oldcode3385 src/compiler/ast-graph-builder.cc:3385: ...
4 years, 8 months ago (2016-04-18 22:49:16 UTC) #4
adamk
Thanks for the review! bmeurer, can you take a look at crankshaft? https://codereview.chromium.org/1895973002/diff/40001/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc ...
4 years, 8 months ago (2016-04-18 23:15:34 UTC) #5
Benedikt Meurer
Awesome! LGTM.
4 years, 8 months ago (2016-04-19 04:18:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1895973002/40002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1895973002/40002
4 years, 8 months ago (2016-04-19 17:01:11 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:40002)
4 years, 8 months ago (2016-04-19 17:03:32 UTC) #10
nodir1
4 years, 8 months ago (2016-04-22 18:43:15 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/59546149c600a2262339e82b6d24e407a71e7a98
Cr-Commit-Position: refs/heads/master@{#35632}

Powered by Google App Engine
This is Rietveld 408576698