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

Issue 7889046: Add an optional source length field to the Extension constructor. (Closed)

Created:
9 years, 3 months ago by miket_OOO
Modified:
9 years, 3 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add an optional source length field to the Extension constructor. The length field allows the caller to pass in the address of a non-null- terminated string. This removes the implicit requirement that the Extension's source be null-terminated, and makes it possible for callers to send in addresses of embedded (and possibly not null-terminated) resource strings, thereby saving a certain amount of resident memory per extension. TEST=added two unit tests to test-api.cc BUG=95147 Committed: http://code.google.com/p/v8/source/detail?r=9365

Patch Set 1 #

Total comments: 15

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -40 lines) Patch
M include/v8.h View 1 3 chunks +25 lines, -5 lines 0 comments Download
M src/api.cc View 1 4 chunks +13 lines, -8 lines 0 comments Download
M src/bootstrapper.cc View 1 1 chunk +7 lines, -8 lines 0 comments Download
M src/factory.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/factory.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/heap.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/heap.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/objects-inl.h View 1 1 chunk +8 lines, -6 lines 0 comments Download
M src/serialize.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-api.cc View 1 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
miket_OOO
Kindly review. Thank you.
9 years, 3 months ago (2011-09-14 20:04:54 UTC) #1
Aaron Boodman
Cool, I hadn't thought about having the ESR be a member of v8::Extension that way. ...
9 years, 3 months ago (2011-09-14 20:33:18 UTC) #2
Aaron Boodman
Oh, and I am still kinda worried that v8 is going to try and delete ...
9 years, 3 months ago (2011-09-14 20:39:32 UTC) #3
miket_OOO
On 2011/09/14 20:39:32, Aaron Boodman wrote: > Oh, and I am still kinda worried that ...
9 years, 3 months ago (2011-09-14 20:47:04 UTC) #4
miket_OOO
http://codereview.chromium.org/7889046/diff/1/include/v8.h File include/v8.h (right): http://codereview.chromium.org/7889046/diff/1/include/v8.h#newcode1171 include/v8.h:1171: V8EXPORT const ExternalAsciiStringResource*GetExternalAsciiStringResource() On 2011/09/14 20:33:18, Aaron Boodman wrote: ...
9 years, 3 months ago (2011-09-14 20:47:16 UTC) #5
miket_OOO
> > Nested ternary operators are hard to read and this is a bit long ...
9 years, 3 months ago (2011-09-14 23:00:58 UTC) #6
Vyacheslav Egorov (Chromium)
redirecting to Florian
9 years, 3 months ago (2011-09-15 10:24:47 UTC) #7
fschneider
http://codereview.chromium.org/7889046/diff/1/include/v8.h File include/v8.h (right): http://codereview.chromium.org/7889046/diff/1/include/v8.h#newcode2455 include/v8.h:2455: ExternalAsciiStringResourceImpl() : data_(0), length_(0) {}; No ; at the ...
9 years, 3 months ago (2011-09-19 07:58:57 UTC) #8
miket_OOO
Made suggested changes. Re-ran unit tests. Please re-review. http://codereview.chromium.org/7889046/diff/1/include/v8.h File include/v8.h (right): http://codereview.chromium.org/7889046/diff/1/include/v8.h#newcode2455 include/v8.h:2455: ExternalAsciiStringResourceImpl() ...
9 years, 3 months ago (2011-09-19 17:39:20 UTC) #9
fschneider
LGTM.
9 years, 3 months ago (2011-09-20 10:40:56 UTC) #10
miket_OOO
9 years, 3 months ago (2011-09-20 17:19:16 UTC) #11
On 2011/09/20 10:40:56, fschneider wrote:
> LGTM.

Thanks, Florian. Will you please submit? (I'm also pressing the commit button on
the CR page, but I'm not sure whether that does anything in the v8 project.)

Powered by Google App Engine
This is Rietveld 408576698