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

Issue 95123003: Fix bug in inlining Function.apply. (Closed)

Created:
7 years ago by Yang
Modified:
7 years ago
CC:
v8-dev
Visibility:
Public.

Description

Fix bug in inlining Function.apply. R=jkummerow@chromium.org BUG=323942 LOG=Y Committed: https://code.google.com/p/v8/source/detail?r=18135

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -21 lines) Patch
M src/hydrogen.cc View 1 2 1 chunk +7 lines, -0 lines 2 comments Download
A + test/mjsunit/regress/regress-crbug-323942.js View 1 2 1 chunk +22 lines, -21 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Yang
7 years ago (2013-11-28 15:07:18 UTC) #1
Jakob Kummerow
LGTM with a comment. https://codereview.chromium.org/95123003/diff/10001/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/95123003/diff/10001/src/hydrogen.cc#newcode7566 src/hydrogen.cc:7566: return false; I think we ...
7 years ago (2013-11-28 15:17:30 UTC) #2
Yang
Committed patchset #3 manually as r18135 (presubmit successful).
7 years ago (2013-11-28 15:30:25 UTC) #3
Michael Starzinger
7 years ago (2013-11-28 16:01:25 UTC) #4
Message was sent while issue was closed.
Unfortunately not LGTM.

https://codereview.chromium.org/95123003/diff/30001/src/hydrogen.cc
File src/hydrogen.cc (right):

https://codereview.chromium.org/95123003/diff/30001/src/hydrogen.cc#newcode7567
src/hydrogen.cc:7567: return false;
I don't think it is safe to bail out at this point, this will cause prop->obj()
to be visited twice. That might be an arbitrary complex expression (maybe with
side-effects). IMHO, the correct fix is further down ...

https://codereview.chromium.org/95123003/diff/30001/src/hydrogen.cc#newcode7600
src/hydrogen.cc:7600: if (function->IsConstant()) {
... here, because that is the only place where the constant function is actually
inspected unsafely.

Powered by Google App Engine
This is Rietveld 408576698