Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index 8925f398cbae1a9344aa6e4ff8395c4e6a72acb0..d6268c951a4998fb3f7fe0b89d029dd1dbf74a1e 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -2410,7 +2410,7 @@ TEST(ArrayGrowLeftTrim) { |
"for (var i = 0; i < 3; ++i)\n" |
" a.shift();\n"); |
- const char* names[] = { "(anonymous function)" }; |
+ const char* names[] = {""}; |
AllocationTracker* tracker = |
reinterpret_cast<i::HeapProfiler*>(heap_profiler)->allocation_tracker(); |
CHECK_NE(NULL, tracker); |
@@ -2445,8 +2445,7 @@ TEST(TrackHeapAllocations) { |
// Print for better diagnostics in case of failure. |
tracker->trace_tree()->Print(tracker); |
- const char* names[] = |
- { "(anonymous function)", "start", "f_0_0", "f_0_1", "f_0_2" }; |
+ const char* names[] = {"", "start", "f_0_0", "f_0_1", "f_0_2"}; |
AllocationTraceNode* node = |
FindNode(tracker, Vector<const char*>(names, ARRAY_SIZE(names))); |
CHECK_NE(NULL, node); |
@@ -2481,7 +2480,7 @@ TEST(TrackBumpPointerAllocations) { |
LocalContext env; |
v8::HeapProfiler* heap_profiler = env->GetIsolate()->GetHeapProfiler(); |
- const char* names[] = { "(anonymous function)", "start", "f_0", "f_1" }; |
+ const char* names[] = {"", "start", "f_0", "f_1"}; |
// First check that normally all allocations are recorded. |
{ |
heap_profiler->StartTrackingHeapObjects(true); |