Serendipitously arrange the tags so that String.length() becomes a branch-free
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 27 Oct 2008 12:39:34 +0000 (12:39 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 27 Oct 2008 12:39:34 +0000 (12:39 +0000)
commit0fc72f2b4e0c91ac56f469b3f8911e2555f12f12
tree7ea25100165f6d357bdb0bb2c30b88731e76b339
parent724f5648b99a20a8df8eec109835b92045b73a1b
Serendipitously arrange the tags so that String.length() becomes a branch-free
operation.  I have another version of this change that does not remove the
special inline caches for difference sized strings.  The other version is ever
so slightly faster, but the nice thing about this version is that it removes
253 lines of code.
Review URL: http://codereview.chromium.org/8187

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@603 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
12 files changed:
src/builtins.cc
src/builtins.h
src/codegen-ia32.cc
src/ic-ia32.cc
src/ic.cc
src/ic.h
src/objects-inl.h
src/objects.cc
src/objects.h
src/stub-cache-ia32.cc
src/stub-cache.cc
src/stub-cache.h