Disentangle printing of stub names and memory allocation.
authorsvenpanne@chromium.org <svenpanne@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 13 Jul 2011 11:08:25 +0000 (11:08 +0000)
committersvenpanne@chromium.org <svenpanne@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 13 Jul 2011 11:08:25 +0000 (11:08 +0000)
commitf1860fbdc0080dc90c8fb04969a9f18876f66709
treecaffeae65c3882779644f75ea6e64275f859b80b
parent6e2da733da84c4cba6d9d457a3d5530c58f6523f
Disentangle printing of stub names and memory allocation.

Using a C++-style method PrintName (a.k.a. << ;-), things get a lot easier when
two unrelated concerns are separated. Stubs don't need a name cache anymore,
simpler code while generating the stub name, memory allocation is centralized,
etc.
Review URL: http://codereview.chromium.org/7342042

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8627 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/code-stubs-arm.cc
src/arm/code-stubs-arm.h
src/code-stubs.cc
src/code-stubs.h
src/ia32/code-stubs-ia32.cc
src/ia32/code-stubs-ia32.h
src/mips/code-stubs-mips.cc
src/mips/code-stubs-mips.h
src/x64/code-stubs-x64.cc
src/x64/code-stubs-x64.h