When strings can change from an ASCII representation to a
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 1 May 2009 11:16:29 +0000 (11:16 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 1 May 2009 11:16:29 +0000 (11:16 +0000)
commitad23017469243ec0be84c795b6f9235c052feacf
tree38e903320608ab0e276cf6f5a83a99de6e357bc9
parent83d1d02df7fa65e3e15ab8faddbfc12bc7b2505a
When strings can change from an ASCII representation to a
UC16 representation we need to be careful about flat strings.
Flat strings can be sliced or cons strings that have a flat
string under them, so when we ask a flat cons or a slice whether
it is ASCII or not we should ask the underlying string about
its representation.  This should fix
http://code.google.com/p/chromium/issues/detail?id=10971
Review URL: http://codereview.chromium.org/100249

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1830 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap.cc
src/ia32/regexp-macro-assembler-ia32.cc
src/interpreter-irregexp.cc
src/jsregexp.cc
src/log.cc
src/objects-inl.h
src/objects.cc
src/objects.h
src/runtime.cc
test/cctest/test-api.cc