Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index d923bc04e8cb5ddaa627053a55a2b6f41c31a6d0..5418979cc50eb3c9f1d958a545876e99fd346918 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -68,7 +68,6 @@ int TokenEnumerator::GetTokenId(Object* token) { |
// to a token object in the V8's heap. |
isolate->global_handles()->MakeWeak(handle.location(), |
this, |
- NULL, |
TokenRemovedCallback); |
token_locations_.Add(handle.location()); |
token_removed_.Add(false); |
@@ -77,11 +76,11 @@ int TokenEnumerator::GetTokenId(Object* token) { |
void TokenEnumerator::TokenRemovedCallback(v8::Isolate* isolate, |
- v8::Persistent<v8::Value> handle, |
+ v8::Persistent<v8::Value>* handle, |
void* parameter) { |
reinterpret_cast<TokenEnumerator*>(parameter)->TokenRemoved( |
- Utils::OpenHandle(*handle).location()); |
- handle.Dispose(isolate); |
+ Utils::OpenHandle(**handle).location()); |
+ handle->Dispose(isolate); |
} |