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

Issue 47006: Fix flaw in VirtualFrame::SetElementAt handling multiple copies of elements. (Closed)

Created:
11 years, 9 months ago by William Hesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix flaw in VirtualFrame::SetElementAt handling multiple copies of elements. Committed: http://code.google.com/p/v8/source/detail?r=1577

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -16 lines) Patch
M src/virtual-frame.cc View 1 1 chunk +24 lines, -16 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
William Hesse
11 years, 9 months ago (2009-03-23 13:57:17 UTC) #1
Kevin Millikin (Chromium)
LGTM other than a couple of style issues. While you're at it, you could make ...
11 years, 9 months ago (2009-03-23 14:21:01 UTC) #2
William Hesse
11 years, 9 months ago (2009-03-23 15:02:52 UTC) #3
http://codereview.chromium.org/47006/diff/1/2
File src/virtual-frame.cc (right):

http://codereview.chromium.org/47006/diff/1/2#newcode393
Line 393: break;
On 2009/03/23 14:21:01, Kevin Millikin wrote:
> If the single-line body of an if statement is on a new line, surround it with
> braces.

Done.

http://codereview.chromium.org/47006/diff/1/2#newcode406
Line 406: elements_[i] = CopyElementAt(frame_index);
On 2009/03/23 14:21:01, Kevin Millikin wrote:
> We might consider preserving the sync flag on elements_[i] (there is code in
> StoreToFrameSlot that tries to do that, but it looks like it doesn't even work
> for registers).

Done.

http://codereview.chromium.org/47006/diff/1/2#newcode407
Line 407: for (int j = i+1; j < elements_.length(); j++) {
On 2009/03/23 14:21:01, Kevin Millikin wrote:
> Space around the binary operator.

Done.

Powered by Google App Engine
This is Rietveld 408576698