Removed a bunch of GetExistingThreadLocal calls by threading the Isolate.
authorsvenpanne@chromium.org <svenpanne@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 16 Nov 2012 08:38:11 +0000 (08:38 +0000)
committersvenpanne@chromium.org <svenpanne@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 16 Nov 2012 08:38:11 +0000 (08:38 +0000)
commitd5f589808d508d3eee76e01e529d32b1486f93c9
tree0780077be08806c94bf2666b50c4049117e11e67
parent5dec1423a4f6fa76a93d09b0a34096f2faa30267
Removed a bunch of GetExistingThreadLocal calls by threading the Isolate.

For Octane, the number of calls go down from 7341629 to 1947880, i.e. they are
reduced by more than 73%. TLS access is not especially cheap, so this exercise
seems worthwhile.

Review URL: https://codereview.chromium.org/11412007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12979 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
17 files changed:
src/api.cc
src/arm/full-codegen-arm.cc
src/factory.cc
src/handles.h
src/hydrogen.cc
src/ia32/full-codegen-ia32.cc
src/ic-inl.h
src/ic.cc
src/mips/full-codegen-mips.cc
src/objects.cc
src/objects.h
src/parser.cc
src/runtime.cc
src/stub-cache.cc
src/type-info.cc
src/variables.h
src/x64/full-codegen-x64.cc