|
Perform string add in generated code on IA-32 platforms
This adds a code stub which can do most of what Heap::AllocateConsString can do. It bails out if the result cannot fit in new space or if the result is a short (flat) string and one argument is an ascii string and the other a two byte string. It also bails out if adding two one character strings as Heap::AllocateConsString has special handling of this utilizing the symbol table. The stub is used both for the binary add operation and for StringAdd calls from runtime JavaScript files. Extended the string add test to cover all sizes of flat result stings.
Committed: http://code.google.com/p/v8/source/detail?r=3400
Total comments: 14
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+492 lines, -18 lines) |
Patch |
|
M |
src/arm/codegen-arm.h
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/arm/codegen-arm.cc
|
View
|
1
2
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/code-stubs.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/codegen.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/ia32/codegen-ia32.h
|
View
|
1
2
|
2 chunks |
+34 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ia32/codegen-ia32.cc
|
View
|
1
2
|
3 chunks |
+233 lines, -2 lines |
2 comments
|
Download
|
|
M |
src/ia32/macro-assembler-ia32.h
|
View
|
1
2
|
3 chunks |
+30 lines, -1 line |
0 comments
|
Download
|
|
M |
src/ia32/macro-assembler-ia32.cc
|
View
|
1
2
|
2 chunks |
+104 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime.js
|
View
|
1
2
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/v8-counters.h
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/x64/codegen-x64.h
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/x64/codegen-x64.cc
|
View
|
1
2
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-strings.cc
|
View
|
|
2 chunks |
+32 lines, -8 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/string-add.js
|
View
|
1
2
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|