Turn some usages of NewArray with DeleteArray in the same scope into ScopedVector...
authorantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 5 May 2010 12:25:58 +0000 (12:25 +0000)
committerantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 5 May 2010 12:25:58 +0000 (12:25 +0000)
commit1e744a3011ca5d8b52a760796e5b561ef13ce8a1
tree8e2153c57f57bc3cfdc1e330c7d2ad51458f3cf2
parent92a9e30cd89a658fdccbe29dbd80a2893de44af9
Turn some usages of NewArray with DeleteArray in the same scope into ScopedVector or SmartPointer.

That makes it easier to maintain the code---one should care less
about releasing the memory as smart pointers would take care of
this.

Switch to ScopedVector instead Vector for the same semantics in
src/builtins.cc

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4593 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
13 files changed:
src/api.cc
src/builtins.cc
src/debug-agent.cc
src/debug.cc
src/flags.cc
src/log.cc
src/objects.cc
src/platform-freebsd.cc
src/platform-linux.cc
src/platform-macos.cc
src/platform-solaris.cc
src/platform-win32.cc
src/utils.h