Reapply r4702 "Fix teardown order"

I accidentaly reverted changes from r4702 in r4706. Now bringing them back.

Original commit message:

As TokenEnumerator cleans up global handles posessed, it's owner --
CpuProfiler must be shut down prior to global handles.

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

TBR=sgjesse@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4752 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
mikhail.naganov@gmail.com 2010-05-28 16:12:24 +00:00
parent ebba43f37a
commit 63e79f5f68

View File

@ -149,10 +149,10 @@ void V8::TearDown() {
Top::TearDown();
Heap::TearDown();
CpuProfiler::TearDown();
Heap::TearDown();
Logger::TearDown();
is_running_ = false;