Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 382318c7a96af3c1e88329e9ae403a53d63aeae2..54ddff17500d67e2ff8e7fd542924856bc44da8c 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -4262,3 +4262,15 @@ TEST(ArrayShiftSweeping) { |
CHECK(page->WasSwept() || |
Marking::IsBlack(Marking::MarkBitFrom(o->elements()))); |
} |
+ |
+ |
+#ifdef DEBUG |
+TEST(PathTracer) { |
+ CcTest::InitializeVM(); |
+ v8::HandleScope scope(CcTest::isolate()); |
+ |
+ v8::Local<v8::Value> result = CompileRun("'abc'"); |
+ Handle<Object> o = v8::Utils::OpenHandle(*result); |
+ CcTest::i_isolate()->heap()->TracePathToObject(*o); |
+} |
+#endif // DEBUG |