|
Remove the different length string types
The different length string types was used to encode the string length and the hash in one field. This is now split into two fields one for length and one for hash. The hash field still encodes the array index of the string if it has one. If an array index is encoded in the hash field the string length is added to the top bits of the hash field to avoid a hash value of zero.
On 32-bit this causes an additional 4 bytes to be used for all string objects. On 64-bit this will be half on average dur to pointer alignment.
Committed: http://code.google.com/p/v8/source/detail?r=3350
Total comments: 28
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+349 lines, -817 lines) |
Patch |
|
M |
include/v8.h
|
View
|
|
2 chunks |
+15 lines, -1 line |
0 comments
|
Download
|
|
M |
src/arm/codegen-arm.cc
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/arm/ic-arm.cc
|
View
|
1
2
3
|
1 chunk |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/arm/stub-cache-arm.cc
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/heap.h
|
View
|
1
2
|
2 chunks |
+16 lines, -46 lines |
0 comments
|
Download
|
|
M |
src/heap.cc
|
View
|
1
2
|
10 chunks |
+29 lines, -126 lines |
0 comments
|
Download
|
|
M |
src/heap-inl.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/ia32/codegen-ia32.cc
|
View
|
|
2 chunks |
+1 line, -14 lines |
0 comments
|
Download
|
|
M |
src/ia32/ic-ia32.cc
|
View
|
1
2
|
5 chunks |
+10 lines, -25 lines |
0 comments
|
Download
|
|
M |
src/ia32/stub-cache-ia32.cc
|
View
|
|
3 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
2
|
10 chunks |
+150 lines, -319 lines |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
|
12 chunks |
+49 lines, -49 lines |
0 comments
|
Download
|
|
M |
src/objects-debug.cc
|
View
|
|
1 chunk |
+12 lines, -36 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
|
8 chunks |
+15 lines, -113 lines |
0 comments
|
Download
|
|
M |
src/runtime.cc
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/string-stream.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/stub-cache.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/utils.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/utils.cc
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/x64/codegen-x64.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -17 lines |
0 comments
|
Download
|
|
M |
src/x64/ic-x64.cc
|
View
|
1
2
|
5 chunks |
+10 lines, -25 lines |
0 comments
|
Download
|
|
M |
src/x64/stub-cache-x64.cc
|
View
|
|
3 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-alloc.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-api.cc
|
View
|
|
1 chunk |
+4 lines, -14 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-heap.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|