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

Issue 25640003: Optimize test for pointer being in a partition on 32-bit. (Closed)

Created:
7 years, 2 months ago by Chris Evans
Modified:
7 years, 2 months ago
Reviewers:
Tom Sepez, cevans, ojan
CC:
blink-reviews, yurys+blink_chromium.org, loislo+blink_chromium.org, adamk+blink_chromium.org, abarth-chromium
Visibility:
Public.

Description

Optimize test for pointer being in a partition on 32-bit. We use a small (8KB) global bitmap. R=tsepez@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158777

Patch Set 1 #

Patch Set 2 : Fixes. #

Total comments: 5

Patch Set 3 : Review fixes. #

Total comments: 1

Patch Set 4 : More review. #

Total comments: 1

Patch Set 5 : Fix variable name. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -6 lines) Patch
M Source/wtf/CPU.h View 3 chunks +7 lines, -1 line 0 comments Download
M Source/wtf/PageAllocator.h View 1 2 3 4 4 chunks +54 lines, -2 lines 0 comments Download
M Source/wtf/PageAllocator.cpp View 1 2 3 4 4 chunks +30 lines, -2 lines 0 comments Download
M Source/wtf/PartitionAlloc.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M Source/wtf/PartitionAllocTest.cpp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
cevans
Here's that simple optimization we talked about. In the future, we might want to move ...
7 years, 2 months ago (2013-10-02 16:37:32 UTC) #1
Tom Sepez
https://codereview.chromium.org/25640003/diff/5001/Source/wtf/PageAllocator.cpp File Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/25640003/diff/5001/Source/wtf/PageAllocator.cpp#newcode181 Source/wtf/PageAllocator.cpp:181: size_t idx = raw >> (kSuperPageShift + 3); same ...
7 years, 2 months ago (2013-10-02 16:51:31 UTC) #2
Tom Sepez
https://codereview.chromium.org/25640003/diff/5001/Source/wtf/PageAllocator.h File Source/wtf/PageAllocator.h (right): https://codereview.chromium.org/25640003/diff/5001/Source/wtf/PageAllocator.h#newcode92 Source/wtf/PageAllocator.h:92: class SuperPageBitmap { On 2013/10/02 16:51:31, Tom Sepez wrote: ...
7 years, 2 months ago (2013-10-02 16:57:33 UTC) #3
Chris Evans
PTAL! On 2013/10/02 16:51:31, Tom Sepez wrote: > https://codereview.chromium.org/25640003/diff/5001/Source/wtf/PageAllocator.cpp > File Source/wtf/PageAllocator.cpp (right): > > ...
7 years, 2 months ago (2013-10-02 19:40:14 UTC) #4
Tom Sepez
Still some ifdefs that might go away. https://codereview.chromium.org/25640003/diff/15001/Source/wtf/PageAllocator.cpp File Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/25640003/diff/15001/Source/wtf/PageAllocator.cpp#newcode100 Source/wtf/PageAllocator.cpp:100: SuperPageBitmap::registerSuperPage(ret); I ...
7 years, 2 months ago (2013-10-02 22:56:52 UTC) #5
Chris Evans
On 2013/10/02 22:56:52, Tom Sepez wrote: > Still some ifdefs that might go away. > ...
7 years, 2 months ago (2013-10-02 23:37:11 UTC) #6
Tom Sepez
lgtm
7 years, 2 months ago (2013-10-02 23:39:12 UTC) #7
ojan
https://codereview.chromium.org/25640003/diff/2001/Source/wtf/PageAllocator.cpp File Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/25640003/diff/2001/Source/wtf/PageAllocator.cpp#newcode176 Source/wtf/PageAllocator.cpp:176: size_t idx = raw >> 3; Nit: Here an ...
7 years, 2 months ago (2013-10-03 00:44:09 UTC) #8
Chris Evans
Committed patchset #5 manually as r158777 (presubmit successful).
7 years, 2 months ago (2013-10-03 07:09:33 UTC) #9
cevans
7 years, 2 months ago (2013-10-03 07:13:26 UTC) #10
Message was sent while issue was closed.
On 2013/10/03 00:44:09, ojan wrote:
>
https://codereview.chromium.org/25640003/diff/2001/Source/wtf/PageAllocator.cpp
> File Source/wtf/PageAllocator.cpp (right):
> 
>
https://codereview.chromium.org/25640003/diff/2001/Source/wtf/PageAllocator.c...
> Source/wtf/PageAllocator.cpp:176: size_t idx = raw >> 3;
> Nit: Here an elsewhere, I'm not sure what "idx" stands for. Is this supposed
to
> be "index"? Blink code prefers to avoid abbreviations in general.

Thanks, this was fixed for landing.

Powered by Google App Engine
This is Rietveld 408576698