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

Issue 50012: Change VirtualFrame::AdjustCopies to mark target as invalid. (Closed)

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

Description

Change VirtualFrame::AdjustCopies to mark target as invalid. Change its name to VirtualFrame::InvalidateFrameSlot Committed: http://code.google.com/p/v8/source/detail?r=1575

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Total comments: 30

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -159 lines) Patch
M src/virtual-frame.cc View 1 2 3 2 chunks +3 lines, -13 lines 0 comments Download
M src/virtual-frame-arm.h View 1 2 3 1 chunk +6 lines, -7 lines 0 comments Download
M src/virtual-frame-arm.cc View 1 2 3 1 chunk +2 lines, -7 lines 0 comments Download
M src/virtual-frame-ia32.h View 1 2 3 1 chunk +6 lines, -7 lines 0 comments Download
M src/virtual-frame-ia32.cc View 1 2 3 4 chunks +70 lines, -125 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
William Hesse
11 years, 9 months ago (2009-03-19 15:17:57 UTC) #1
Kevin Millikin (Chromium)
The Use/Unuse protocol in AdjustCopies should be simplified, then it LGTM. I have a couple ...
11 years, 9 months ago (2009-03-19 15:45:52 UTC) #2
William Hesse
Changed name, added ARM changes. http://codereview.chromium.org/50012/diff/1/2 File src/virtual-frame-ia32.cc (right): http://codereview.chromium.org/50012/diff/1/2#newcode525 Line 525: __ mov(backing_reg, Operand(ebp, ...
11 years, 9 months ago (2009-03-20 13:48:16 UTC) #3
Kevin Millikin (Chromium)
It's a little confusing (probably because of the original code). The biggest thing is that ...
11 years, 9 months ago (2009-03-20 14:44:55 UTC) #4
William Hesse
Much nicer now. http://codereview.chromium.org/50012/diff/7/12 File src/virtual-frame-arm.h (right): http://codereview.chromium.org/50012/diff/7/12#newcode450 Line 450: // Presently does nothing on ...
11 years, 9 months ago (2009-03-23 12:25:23 UTC) #5
Kevin Millikin (Chromium)
11 years, 9 months ago (2009-03-23 13:14:09 UTC) #6
LGTM.  Couple formatting issues you should look at.

http://codereview.chromium.org/50012/diff/1007/1008
File src/virtual-frame-ia32.cc (right):

http://codereview.chromium.org/50012/diff/1007/1008#newcode537
Line 537: elements_[new_backing_index] =
FrameElement::RegisterElement(backing_reg,
I still don't like this screwy indentation.  What's wrong with:

if (elements_[new_backing_index].is_synced()) {
  elements_[new_backing_index] =
      FrameElement::RegisterElement(backing_reg, FrameElement::SYNCED);
} else {
  ...
}

If you stick with the ternary operator, please follow the style guide (break
after the opening paren, align each new line containing arguments with a four
space indent, and though not required, don't align the ? and : lines so they
look like arguments (ie, indent them further)).

http://codereview.chromium.org/50012/diff/1007/1008#newcode543
Line 543: for (int j = new_backing_index+1; j < elements_.length(); j++) {
I'd rather see "i" for the index.  Binary operators (+) should be surrounded
with spaces.

http://codereview.chromium.org/50012/diff/1007/1008#newcode566
Line 566: // that register element on the top of the stack.
Be careful in comments about the distinction between "stack" (which exists at
runtime) and "(virtual) frame" which exists at compile time.  Here we're
actually not pushing on the stack, so I'd say something like "allocate to a
register and push on the frame".

Powered by Google App Engine
This is Rietveld 408576698