diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2009-12-19 01:04:19 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2009-12-19 01:04:19 +0100 |
commit | a98afdfb2f05d163b2d4145f2d98c4a7ffd13bfd (patch) | |
tree | 7efd649b7aceaab2d4d847ce79c4517fb616afe3 /deps/v8/src/global-handles.cc | |
parent | 0981e7f663c9f6cfbccb49aa2956df499a63e60d (diff) | |
download | node-new-a98afdfb2f05d163b2d4145f2d98c4a7ffd13bfd.tar.gz |
Revert "Upgrade V8 to 2.0.5"
This reverts commit 20b945df706b2b9fcbc1a84230372d288d497544.
Broken on Hagen's Macintosh. Don't have time to investigate.
Diffstat (limited to 'deps/v8/src/global-handles.cc')
-rw-r--r-- | deps/v8/src/global-handles.cc | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/deps/v8/src/global-handles.cc b/deps/v8/src/global-handles.cc index e4bb925f0e..f3b2b0c50c 100644 --- a/deps/v8/src/global-handles.cc +++ b/deps/v8/src/global-handles.cc @@ -168,12 +168,6 @@ class GlobalHandles::Node : public Malloced { if (first_deallocated()) { first_deallocated()->set_next(head()); } - // Check that we are not passing a finalized external string to - // the callback. - ASSERT(!object_->IsExternalAsciiString() || - ExternalAsciiString::cast(object_)->resource() != NULL); - ASSERT(!object_->IsExternalTwoByteString() || - ExternalTwoByteString::cast(object_)->resource() != NULL); // Leaving V8. VMState state(EXTERNAL); func(object, par); @@ -442,15 +436,15 @@ void GlobalHandles::RecordStats(HeapStats* stats) { *stats->near_death_global_handle_count = 0; *stats->destroyed_global_handle_count = 0; for (Node* current = head_; current != NULL; current = current->next()) { - *stats->global_handle_count += 1; + *stats->global_handle_count++; if (current->state_ == Node::WEAK) { - *stats->weak_global_handle_count += 1; + *stats->weak_global_handle_count++; } else if (current->state_ == Node::PENDING) { - *stats->pending_global_handle_count += 1; + *stats->pending_global_handle_count++; } else if (current->state_ == Node::NEAR_DEATH) { - *stats->near_death_global_handle_count += 1; + *stats->near_death_global_handle_count++; } else if (current->state_ == Node::DESTROYED) { - *stats->destroyed_global_handle_count += 1; + *stats->destroyed_global_handle_count++; } } } @@ -513,4 +507,5 @@ void GlobalHandles::RemoveObjectGroups() { object_groups->Clear(); } + } } // namespace v8::internal |