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

Issue 159903008: Fix assignment of function name constant. (Closed)

Created:
6 years, 10 months ago by Yang
Modified:
6 years, 10 months ago
Reviewers:
rossberg
CC:
v8-dev
Visibility:
Public.

Description

Fix assignment of function name constant. If it's shadowed by a variable of the same name and both are forcibly context-allocated, the function is assigned to the wrong context slot. R=rossberg@chromium.org BUG=v8:3138 LOG=Y Committed: https://code.google.com/p/v8/source/detail?r=19379

Patch Set 1 #

Total comments: 1

Patch Set 2 : changed test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -165 lines) Patch
M src/a64/full-codegen-a64.cc View 3 chunks +42 lines, -45 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 4 chunks +41 lines, -40 lines 0 comments Download
M src/full-codegen.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 4 chunks +39 lines, -40 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 4 chunks +39 lines, -40 lines 0 comments Download
A test/mjsunit/regress/regress-3138.js View 1 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Yang
6 years, 10 months ago (2014-02-12 14:58:07 UTC) #1
Yang
On 2014/02/12 14:58:07, Yang wrote: In a rare twist, only fullcodegen, not crankshaft, is affected.
6 years, 10 months ago (2014-02-12 14:59:02 UTC) #2
rossberg
LGTM with comment https://codereview.chromium.org/159903008/diff/1/test/mjsunit/regress/regress-3138.js File test/mjsunit/regress/regress-3138.js (right): https://codereview.chromium.org/159903008/diff/1/test/mjsunit/regress/regress-3138.js#newcode23 test/mjsunit/regress/regress-3138.js:23: with ( {} ) const a ...
6 years, 10 months ago (2014-02-14 11:56:21 UTC) #3
Yang
Committed patchset #2 manually as r19379 (presubmit successful).
6 years, 10 months ago (2014-02-14 12:40:56 UTC) #4
Yang
6 years, 10 months ago (2014-02-14 12:40:57 UTC) #5
Message was sent while issue was closed.
On 2014/02/14 11:56:21, rossberg wrote:
> LGTM with comment
> 
>
https://codereview.chromium.org/159903008/diff/1/test/mjsunit/regress/regress...
> File test/mjsunit/regress/regress-3138.js (right):
> 
>
https://codereview.chromium.org/159903008/diff/1/test/mjsunit/regress/regress...
> test/mjsunit/regress/regress-3138.js:23: with ( {} ) const a = 3;
> How exactly is this test related?
> 
> Can we either remove it, or at least change it so that it is compatible with
> upcoming ES6 semantics?

Changed test case as discussed offline.

Powered by Google App Engine
This is Rietveld 408576698