Improve speed of Utf8Write by always flattening the string first and
authorerikcorry <erikcorry@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 17 Oct 2011 12:48:31 +0000 (12:48 +0000)
committererikcorry <erikcorry@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 17 Oct 2011 12:48:31 +0000 (12:48 +0000)
commitdac0b853e112660a5d52a032a9558f1b6c79ad0f
treee1d7073ffdfd6f7f19ff7cba7436096d9a80c2e1
parent2bbf3bbee7483b31762ed717fb387fcefa07d29a
Improve speed of Utf8Write by always flattening the string first and
detecting the ASCII case.  Also rewrite Utf8Length to work on an
unflattened string.  Bug: http://code.google.com/p/v8/issues/detail?id=1665
Review URL: http://codereview.chromium.org/8304021

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9661 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/api.cc
src/objects.cc
src/objects.h
test/cctest/test-api.cc