| Index: src/global-handles.cc
|
| diff --git a/src/global-handles.cc b/src/global-handles.cc
|
| index c282b1966406c7ac7b4b5a0d940504a20750b988..e66af968202f6fde63a90de504dc132c3b062655 100644
|
| --- a/src/global-handles.cc
|
| +++ b/src/global-handles.cc
|
| @@ -103,7 +103,7 @@ class GlobalHandles::Node : public Malloced {
|
| // Make this handle weak.
|
| void MakeWeak(GlobalHandles* global_handles, void* parameter,
|
| WeakReferenceCallback callback) {
|
| - LOG(HandleEvent("GlobalHandle::MakeWeak", handle().location()));
|
| + LOG(global_handles->isolate(), HandleEvent("GlobalHandle::MakeWeak", handle().location()));
|
| ASSERT(state_ != DESTROYED);
|
| if (state_ != WEAK && !IsNearDeath()) {
|
| global_handles->number_of_weak_handles_++;
|
| @@ -117,7 +117,7 @@ class GlobalHandles::Node : public Malloced {
|
| }
|
|
|
| void ClearWeakness(GlobalHandles* global_handles) {
|
| - LOG(HandleEvent("GlobalHandle::ClearWeakness", handle().location()));
|
| + LOG(global_handles->isolate(), HandleEvent("GlobalHandle::ClearWeakness", handle().location()));
|
| ASSERT(state_ != DESTROYED);
|
| if (state_ == WEAK || IsNearDeath()) {
|
| global_handles->number_of_weak_handles_--;
|
| @@ -154,7 +154,7 @@ class GlobalHandles::Node : public Malloced {
|
| bool PostGarbageCollectionProcessing(Isolate* isolate,
|
| GlobalHandles* global_handles) {
|
| if (state_ != Node::PENDING) return false;
|
| - LOG(HandleEvent("GlobalHandle::Processing", handle().location()));
|
| + LOG(isolate, HandleEvent("GlobalHandle::Processing", handle().location()));
|
| WeakReferenceCallback func = callback();
|
| if (func == NULL) {
|
| Destroy(global_handles);
|
| @@ -383,7 +383,7 @@ void GlobalHandles::IdentifyWeakHandles(WeakSlotCallback f) {
|
| if (current->state_ == Node::WEAK) {
|
| if (f(¤t->object_)) {
|
| current->state_ = Node::PENDING;
|
| - LOG(HandleEvent("GlobalHandle::Pending", current->handle().location()));
|
| + LOG(isolate_, HandleEvent("GlobalHandle::Pending", current->handle().location()));
|
| }
|
| }
|
| }
|
|
|