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

Issue 1584243002: Don't pre-initialise block contexts with holes (Closed)

Created:
4 years, 11 months ago by rossberg
Modified:
4 years, 11 months ago
CC:
v8-reviews_googlegroups.com, Michael Starzinger
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Don't pre-initialise block contexts with holes Respective declarations will explicitly initialise slots with the hole anyway, so this always was unnecessary. With varblocks it even became wrong, because block contexts may now host var bindings, which want undefined. Fixes the hole leaking when accessing an unitialised, block-context-allocated var. R=neis@chromium.org BUG=571149 LOG=N Committed: https://crrev.com/92e6f7a315355bd61cc85d78448e592ab5e125c8 Cr-Commit-Position: refs/heads/master@{#33309}

Patch Set 1 #

Patch Set 2 : Adapt Turbofan #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -3 lines) Patch
M src/compiler/js-typed-lowering.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/factory.cc View 1 chunk +1 line, -2 lines 0 comments Download
A test/mjsunit/harmony/regress/regress-crbug-571149.js View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (12 generated)
rossberg
4 years, 11 months ago (2016-01-14 15:57:37 UTC) #1
caitp (gmail)
On 2016/01/14 15:57:37, rossberg wrote: Does this possibly have an impact on context-allocated `let` variables?
4 years, 11 months ago (2016-01-14 15:59:36 UTC) #2
neis
lgtm
4 years, 11 months ago (2016-01-14 16:01:30 UTC) #3
caitp (gmail)
On 2016/01/14 15:59:36, caitp wrote: > On 2016/01/14 15:57:37, rossberg wrote: > > Does this ...
4 years, 11 months ago (2016-01-14 16:01:45 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1584243002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1584243002/1
4 years, 11 months ago (2016-01-14 16:03:21 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/9766)
4 years, 11 months ago (2016-01-14 16:07:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1584243002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1584243002/1
4 years, 11 months ago (2016-01-14 16:17:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1584243002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1584243002/20001
4 years, 11 months ago (2016-01-14 16:21:26 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/9771)
4 years, 11 months ago (2016-01-14 16:25:15 UTC) #17
rossberg
Now needs LGTM from compiler owner. Michi?
4 years, 11 months ago (2016-01-14 16:26:43 UTC) #19
Michael Starzinger
LGTM on "compiler", nice catch!
4 years, 11 months ago (2016-01-14 17:25:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1584243002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1584243002/20001
4 years, 11 months ago (2016-01-14 18:02:58 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-14 18:04:05 UTC) #24
commit-bot: I haz the power
4 years, 11 months ago (2016-01-14 18:04:40 UTC) #26
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/92e6f7a315355bd61cc85d78448e592ab5e125c8
Cr-Commit-Position: refs/heads/master@{#33309}

Powered by Google App Engine
This is Rietveld 408576698