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

Issue 11194053: Keep track of the first non-ascii word/char to avoid redoing the work. (Closed)

Created:
8 years, 2 months ago by Toon Verwaest
Modified:
8 years, 2 months ago
Reviewers:
Yang
CC:
v8-dev
Visibility:
Public.

Description

Keep track of the first non-ascii word/char to avoid redoing the work. Committed: https://code.google.com/p/v8/source/detail?r=12762

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -13 lines) Patch
M src/heap.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/heap.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
M src/heap-inl.h View 1 1 chunk +5 lines, -2 lines 0 comments Download
M src/objects.h View 1 1 chunk +22 lines, -7 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Toon Verwaest
PTAL.
8 years, 2 months ago (2012-10-18 13:51:47 UTC) #1
Yang
LGTM with comments. https://chromiumcodereview.appspot.com/11194053/diff/1/src/heap.cc File src/heap.cc (right): https://chromiumcodereview.appspot.com/11194053/diff/1/src/heap.cc#newcode4431 src/heap.cc:4431: const char* non_ascii_start, Maybe it's cleaner ...
8 years, 2 months ago (2012-10-18 14:46:22 UTC) #2
Toon Verwaest
8 years, 2 months ago (2012-10-18 15:06:56 UTC) #3
Addressed comments

https://chromiumcodereview.appspot.com/11194053/diff/1/src/heap.cc
File src/heap.cc (right):

https://chromiumcodereview.appspot.com/11194053/diff/1/src/heap.cc#newcode4431
src/heap.cc:4431: const char* non_ascii_start,
On 2012/10/18 14:46:23, Yang wrote:
> Maybe it's cleaner to pass non_ascii_start as string index and not as an
address
> pointing into the backing store? You need that index anyways.

Done.

https://chromiumcodereview.appspot.com/11194053/diff/1/src/objects.h
File src/objects.h (right):

https://chromiumcodereview.appspot.com/11194053/diff/1/src/objects.h#newcode7416
src/objects.h:7416: static inline const char* NonAsciiStart(const char* chars,
int length) {
On 2012/10/18 14:46:23, Yang wrote:
> Please add a comment on what the return value is (it may be a multiple of
> sizeof(uintptr_t) depending on the ifdef and not the exact index of the first
> char!)

Done.

Powered by Google App Engine
This is Rietveld 408576698