Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: src/global-handles.cc

Issue 6696042: Adding 'isolates' argument to LOG to get rid of multiple TLS fetches in profiling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/isolates
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/compiler.cc ('K') | « src/global-handles.h ('k') | src/handles.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(&current->object_)) {
current->state_ = Node::PENDING;
- LOG(HandleEvent("GlobalHandle::Pending", current->handle().location()));
+ LOG(isolate_, HandleEvent("GlobalHandle::Pending", current->handle().location()));
}
}
}
« src/compiler.cc ('K') | « src/global-handles.h ('k') | src/handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698