Add heuristic for flattening strings before comparing them.
authorvitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 16 Mar 2010 12:30:04 +0000 (12:30 +0000)
committervitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 16 Mar 2010 12:30:04 +0000 (12:30 +0000)
commit6a10a837c0038e2cd185141d75acfd057baa15bb
tree5e6eea743f2762c40c9c62a911c1b431438885fe
parentb2b2eb5792f7b63ac83eb1908a6e8a00c132729d
Add heuristic for flattening strings before comparing them.

Also switched to using CompareChars instead of memcmp since it's
faster than gcc's builtin and on par with msvc's builtin.

Review URL: http://codereview.chromium.org/991002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4145 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap-inl.h
src/heap.cc
src/heap.h
src/runtime.cc