|
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
Total comments: 15
|
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
|
Total messages: 11 (0 generated)
|