| Index: src/debug.cc
|
| diff --git a/src/debug.cc b/src/debug.cc
|
| index 02ec1248f051d423770370158c12b468230a3b8d..a61a39413d12af0f16bd2b4c001a37f6c026e18c 100644
|
| --- a/src/debug.cc
|
| +++ b/src/debug.cc
|
| @@ -619,7 +619,6 @@ void ScriptCache::Add(Handle<Script> script) {
|
| (global_handles->Create(*script)));
|
| global_handles->MakeWeak(reinterpret_cast<Object**>(script_.location()),
|
| this,
|
| - NULL,
|
| ScriptCache::HandleWeakScript);
|
| entry->value = script_.location();
|
| }
|
| @@ -664,12 +663,12 @@ void ScriptCache::Clear() {
|
|
|
|
|
| void ScriptCache::HandleWeakScript(v8::Isolate* isolate,
|
| - v8::Persistent<v8::Value> obj,
|
| + v8::Persistent<v8::Value>* obj,
|
| void* data) {
|
| ScriptCache* script_cache = reinterpret_cast<ScriptCache*>(data);
|
| // Find the location of the global handle.
|
| Script** location =
|
| - reinterpret_cast<Script**>(Utils::OpenHandle(*obj).location());
|
| + reinterpret_cast<Script**>(Utils::OpenHandle(**obj).location());
|
| ASSERT((*location)->IsScript());
|
|
|
| // Remove the entry from the cache.
|
| @@ -678,8 +677,7 @@ void ScriptCache::HandleWeakScript(v8::Isolate* isolate,
|
| script_cache->collected_scripts_.Add(id);
|
|
|
| // Clear the weak handle.
|
| - obj.Dispose(isolate);
|
| - obj.Clear();
|
| + obj->Dispose(isolate);
|
| }
|
|
|
|
|
| @@ -699,7 +697,7 @@ void Debug::SetUp(bool create_heap_objects) {
|
|
|
|
|
| void Debug::HandleWeakDebugInfo(v8::Isolate* isolate,
|
| - v8::Persistent<v8::Value> obj,
|
| + v8::Persistent<v8::Value>* obj,
|
| void* data) {
|
| Debug* debug = reinterpret_cast<Isolate*>(isolate)->debug();
|
| DebugInfoListNode* node = reinterpret_cast<DebugInfoListNode*>(data);
|
| @@ -727,7 +725,6 @@ DebugInfoListNode::DebugInfoListNode(DebugInfo* debug_info): next_(NULL) {
|
| (global_handles->Create(debug_info)));
|
| global_handles->MakeWeak(reinterpret_cast<Object**>(debug_info_.location()),
|
| this,
|
| - NULL,
|
| Debug::HandleWeakDebugInfo);
|
| }
|
|
|
|
|