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

Issue 2760413002: Minor optimization to v8::internal::Factory::InternalizeOneByteString.

Created:
3 years, 9 months ago by jbroman
Modified:
3 years, 9 months ago
Reviewers:
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

Minor optimization to v8::internal::Factory::InternalizeOneByteString. This makes StringTable lookup up to the hashtable (which is already in object-inl.h) inline (which allows a redundant check to optimize away). Also, a specialized key which checks for the case where the string table contains an internalized SeqOneByteString, which is the common case when looking up a string from raw one-byte data, before falling back to more general logic. BUG=chromium:685748

Patch Set 1 #

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -27 lines) Patch
M src/factory.cc View 1 chunk +19 lines, -1 line 0 comments Download
M src/objects.h View 1 3 chunks +6 lines, -2 lines 0 comments Download
M src/objects.cc View 1 3 chunks +4 lines, -24 lines 0 comments Download
M src/objects-inl.h View 1 2 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (11 generated)
jbroman
The CQ bit was checked by jbroman@chromium.org to run a CQ dry run
3 years, 9 months ago (2017-03-21 19:23:22 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2760413002/1
3 years, 9 months ago (2017-03-21 19:23:26 UTC) #2
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 9 months ago (2017-03-21 19:51:32 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
3 years, 9 months ago (2017-03-21 19:51:33 UTC) #4
jbroman
The CQ bit was checked by jbroman@chromium.org to run a CQ dry run
3 years, 9 months ago (2017-03-21 21:25:01 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2760413002/20001
3 years, 9 months ago (2017-03-21 21:25:09 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 9 months ago (2017-03-21 21:51:29 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
3 years, 9 months ago (2017-03-21 21:51:29 UTC) #8
jbroman
Description was changed from ========== WIP: Minor optimization to v8::internal::Factory::InternalizeOneByteString. Make GetHashField inline, as it ...
3 years, 9 months ago (2017-03-21 22:05:16 UTC) #9
jbroman
Description was changed from ========== WIP: Minor optimization to v8::internal::Factory::InternalizeOneByteString. This makes StringTable lookup up ...
3 years, 9 months ago (2017-03-21 22:06:25 UTC) #10
jbroman
3 years, 9 months ago (2017-03-21 22:06:37 UTC) #11
Description was changed from

==========
Minor optimization to v8::internal::Factory::InternalizeOneByteString.

This makes StringTable lookup up to the hashtable (which is already in
object-inl.h)
inline (which allows a redundant check to optimize away).

Also, a specialized key which checks for the case where the string table
contains
an internalized SeqOneByteString, which is the common case when looking up a
string from raw one-byte data, before falling back to more general logic.

BUG=
==========

to

==========
Minor optimization to v8::internal::Factory::InternalizeOneByteString.

This makes StringTable lookup up to the hashtable (which is already in
object-inl.h)
inline (which allows a redundant check to optimize away).

Also, a specialized key which checks for the case where the string table
contains
an internalized SeqOneByteString, which is the common case when looking up a
string from raw one-byte data, before falling back to more general logic.

BUG=chromium:685748
==========

Powered by Google App Engine
This is Rietveld 408576698