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

Issue 49029: Inline part of RawSyncElementAt, improve PrepareForCall (Closed)

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

Description

Inline part of RawSyncElementAt, split the rest into two functions. Improve PrepareForCall, SyncRange, and SyncElementAt. Committed: http://code.google.com/p/v8/source/detail?r=1618

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -198 lines) Patch
M src/virtual-frame.cc View 1 2 3 4 2 chunks +34 lines, -21 lines 0 comments Download
M src/virtual-frame-arm.h View 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M src/virtual-frame-arm.cc View 2 3 4 1 chunk +5 lines, -90 lines 0 comments Download
M src/virtual-frame-ia32.h View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M src/virtual-frame-ia32.cc View 1 2 3 4 1 chunk +81 lines, -81 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
William Hesse
11 years, 9 months ago (2009-03-25 13:07:43 UTC) #1
Kevin Millikin (Chromium)
This looks good. You might consider manually inlining RawSyncElementAt at its two call sites and ...
11 years, 9 months ago (2009-03-25 13:40:00 UTC) #2
William Hesse
Inlined RawSyncElementAt at call sites, optimized by hand. http://codereview.chromium.org/49029/diff/1/2 File src/virtual-frame-ia32.cc (right): http://codereview.chromium.org/49029/diff/1/2#newcode67 Line 67: ...
11 years, 9 months ago (2009-03-25 15:23:02 UTC) #3
Kevin Millikin (Chromium)
Oh, and LGTM. http://codereview.chromium.org/49029/diff/2007/2010 File src/virtual-frame.cc (right): http://codereview.chromium.org/49029/diff/2007/2010#newcode216 Line 216: // [min(stack_pointer_,begin), end). You mean ...
11 years, 9 months ago (2009-03-25 15:58:57 UTC) #4
William Hesse
11 years, 8 months ago (2009-04-01 16:11:08 UTC) #5
http://codereview.chromium.org/49029/diff/2007/2010
File src/virtual-frame.cc (right):

http://codereview.chromium.org/49029/diff/2007/2010#newcode216
Line 216: // [min(stack_pointer_,begin), end).
On 2009/03/25 15:58:57, Kevin Millikin wrote:
> You mean min(stack_pointer + 1, begin)?
> 
> It might be better in the sense of avoiding surprise to not make this general
> and to require the caller to give a proper range (ie, beginning at or below
> stack_pointer + 1).  It would be more explicit at the calling sites (both of
> them!) what's going on (and I think it's true now anyway).

The function has been changed differently, and commented.
It does seem like the correct place to make sure that begin
is less than or equal to stack_pointer_ + 1, rather than at each call site.

Powered by Google App Engine
This is Rietveld 408576698