Index: test/cctest/test-heap-profiler.cc |
=================================================================== |
--- test/cctest/test-heap-profiler.cc (revision 13485) |
+++ test/cctest/test-heap-profiler.cc (working copy) |
@@ -1116,7 +1116,7 @@ |
instance_ = NULL; |
} |
- static void gcPrologue() { |
+ static void gcPrologue(v8::GCType type, v8::GCCallbackFlags flags) { |
instance_->AddImplicitReferences(); |
} |
@@ -1142,7 +1142,7 @@ |
LocalContext env; |
GraphWithImplicitRefs graph(&env); |
- v8::V8::SetGlobalGCPrologueCallback(&GraphWithImplicitRefs::gcPrologue); |
+ v8::V8::AddGCPrologueCallback(&GraphWithImplicitRefs::gcPrologue); |
const v8::HeapSnapshot* snapshot = |
v8::HeapProfiler::TakeSnapshot(v8_str("implicit_refs")); |
@@ -1165,7 +1165,7 @@ |
} |
} |
CHECK_EQ(2, implicit_targets_count); |
- v8::V8::SetGlobalGCPrologueCallback(NULL); |
+ v8::V8::RemoveGCPrologueCallback(&GraphWithImplicitRefs::gcPrologue); |
} |