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

Issue 11418088: Drastically reduce the number of created strings in d8, 2nd attempt. (Closed)

Created:
8 years, 1 month ago by Sven Panne
Modified:
8 years, 1 month ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Drastically reduce the number of created strings in d8, 2nd attempt. This also reduces the number of TLS accesses, so it is a double-win. We have 230k less TLS accesses while running Octane now, so we are down to 23% now compared to the start of these TLS-related CLs. To get things right in the presence of multiple Isolates, we have to thread the correct Isolate through several layers. This threading wasn't that bad after all, it keeps one honest about the real depdencies. The only ugly thing is that in ExternalArrayWeakCallback we have to conjure up the current Isolate from the TLS, but this is a know API deficiency. Introduced a tiny helper function for throwing on the way. Committed: https://code.google.com/p/v8/source/detail?r=13018

Patch Set 1 #

Patch Set 2 : More threading #

Patch Set 3 : Clean up LineEditor #

Total comments: 2

Patch Set 4 : Rebased and addressed feedback comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -186 lines) Patch
M src/d8.h View 1 2 6 chunks +14 lines, -13 lines 0 comments Download
M src/d8.cc View 1 2 3 48 chunks +227 lines, -173 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Sven Panne
8 years, 1 month ago (2012-11-20 14:14:44 UTC) #1
Michael Starzinger
LGTM with a nit. https://codereview.chromium.org/11418088/diff/4001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/11418088/diff/4001/src/d8.cc#newcode107 src/d8.cc:107: #undef DISPOSE_SYMBOL Can we defensively ...
8 years, 1 month ago (2012-11-20 14:35:46 UTC) #2
Sven Panne
8 years, 1 month ago (2012-11-20 14:46:22 UTC) #3
Landing...

https://codereview.chromium.org/11418088/diff/4001/src/d8.cc
File src/d8.cc (right):

https://codereview.chromium.org/11418088/diff/4001/src/d8.cc#newcode107
src/d8.cc:107: #undef DISPOSE_SYMBOL
On 2012/11/20 14:35:46, Michael Starzinger wrote:
> Can we defensively reset the embedder data to NULL here?

Done.

Powered by Google App Engine
This is Rietveld 408576698