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

Issue 9536011: Inline one level of recursive call of WriteToFlat for the common case of cons string list. (Closed)

Created:
8 years, 9 months ago by Yang
Modified:
8 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Inline one level of recursive call of WriteToFlat for the common case of cons string list. BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=10871

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -3 lines) Patch
M src/objects.cc View 1 chunk +14 lines, -3 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
Yang
PTAL.
8 years, 9 months ago (2012-02-29 14:06:37 UTC) #1
Sven Panne
lgtm
8 years, 9 months ago (2012-02-29 14:24:05 UTC) #2
piscisaureus
https://chromiumcodereview.appspot.com/9536011/diff/1/src/objects.cc File src/objects.cc (right): https://chromiumcodereview.appspot.com/9536011/diff/1/src/objects.cc#newcode6869 src/objects.cc:6869: sink[boundary - from] = static_cast<sinkchar>(second->Get(0)); MSVC refuses to inline ...
8 years, 7 months ago (2012-05-08 00:00:09 UTC) #3
Yang
8 years, 7 months ago (2012-05-08 12:32:05 UTC) #4
On 2012/05/08 00:00:09, piscisaureus wrote:
> https://chromiumcodereview.appspot.com/9536011/diff/1/src/objects.cc
> File src/objects.cc (right):
> 
>
https://chromiumcodereview.appspot.com/9536011/diff/1/src/objects.cc#newcode6869
> src/objects.cc:6869: sink[boundary - from] =
> static_cast<sinkchar>(second->Get(0));
> MSVC refuses to inline the Get(0) call. My benchmarks show that the difference
> is significant though. Any chance we could get a __forceinline or
> __attribute__((always_inline)) decorator on the Get method?
> 
>
https://chromiumcodereview.appspot.com/9536011/diff/1/src/objects.cc#newcode6871
> src/objects.cc:6871: CopyChars(sink + boundary - from,
> Ditto.

Thanks for the comment. Follow-up CL: http://codereview.chromium.org/10332054/

Powered by Google App Engine
This is Rietveld 408576698