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

Issue 8568013: Introduce read buffer for external strings when using charAt (ia32). (Closed)

Created:
9 years, 1 month ago by Yang
Modified:
9 years, 1 month ago
CC:
v8-dev
Visibility:
Public.

Description

Introduce read buffer for external strings when using charAt (ia32). TEST=test/mjsunit/string-externalize.js

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+454 lines, -201 lines) Patch
M src/arm/macro-assembler-arm.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M src/code-stubs.h View 1 chunk +9 lines, -0 lines 0 comments Download
M src/extensions/externalize-string-extension.cc View 1 2 2 chunks +12 lines, -2 lines 0 comments Download
M src/heap.h View 1 chunk +10 lines, -0 lines 0 comments Download
M src/heap.cc View 4 chunks +20 lines, -5 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 3 chunks +113 lines, -53 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 chunk +6 lines, -76 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 3 chunks +7 lines, -3 lines 0 comments Download
M src/mips/macro-assembler-mips.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/objects.h View 12 chunks +94 lines, -8 lines 0 comments Download
M src/objects.cc View 7 chunks +93 lines, -45 lines 0 comments Download
M src/objects-debug.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M src/objects-inl.h View 4 chunks +35 lines, -5 lines 0 comments Download
M src/objects-printer.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/objects-visiting.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M test/mjsunit/string-externalize.js View 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Yang
Please take a look. This CL adds a read buffer to long external strings. Short ...
9 years, 1 month ago (2011-11-15 18:09:20 UTC) #1
Vitaly Repeshko
Here's an interesting fact about ExternalStringResource::data(). Its current contract actually requires the embedder to keep ...
9 years, 1 month ago (2011-11-15 18:25:21 UTC) #2
Lasse Reichstein
9 years, 1 month ago (2011-11-15 19:12:14 UTC) #3
My immediate thought would be the same: If we have a word to spare in the String
structure, we might as well let it point directly to the real character data
instead of pointing to an intermediate buffer.
It might require tweaking of GC, since it would be a native pointer, but so is
the resource pointer, so it should be doable.

We were considering adding such a pointer recently, but the overhead of adding
an extra pointer to all external strings seemed steep. It's a good idea to only
do it to some strings.

Powered by Google App Engine
This is Rietveld 408576698