Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index 94bec31d8d2a320ab182582f883dfba05c7c2f46..8de610b9e3658a4f730b3ce5161fb75e9c71b374 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -2311,7 +2311,7 @@ TEST(CheckCodeNames) { |
"::(ArraySingleArgumentConstructorStub code)" |
}; |
const v8::HeapGraphNode* node = GetNodeByPath(snapshot, |
- stub_path, ARRAY_SIZE(stub_path)); |
+ stub_path, arraysize(stub_path)); |
CHECK_NE(NULL, node); |
const char* builtin_path1[] = { |
@@ -2319,7 +2319,7 @@ TEST(CheckCodeNames) { |
"::(Builtins)", |
"::(KeyedLoadIC_Generic builtin)" |
}; |
- node = GetNodeByPath(snapshot, builtin_path1, ARRAY_SIZE(builtin_path1)); |
+ node = GetNodeByPath(snapshot, builtin_path1, arraysize(builtin_path1)); |
CHECK_NE(NULL, node); |
const char* builtin_path2[] = { |
@@ -2327,7 +2327,7 @@ TEST(CheckCodeNames) { |
"::(Builtins)", |
"::(CompileUnoptimized builtin)" |
}; |
- node = GetNodeByPath(snapshot, builtin_path2, ARRAY_SIZE(builtin_path2)); |
+ node = GetNodeByPath(snapshot, builtin_path2, arraysize(builtin_path2)); |
CHECK_NE(NULL, node); |
v8::String::Utf8Value node_name(node->GetName()); |
CHECK_EQ("(CompileUnoptimized builtin)", *node_name); |
@@ -2420,7 +2420,7 @@ TEST(ArrayGrowLeftTrim) { |
tracker->trace_tree()->Print(tracker); |
AllocationTraceNode* node = |
- FindNode(tracker, Vector<const char*>(names, ARRAY_SIZE(names))); |
+ FindNode(tracker, Vector<const char*>(names, arraysize(names))); |
CHECK_NE(NULL, node); |
CHECK_GE(node->allocation_count(), 2); |
CHECK_GE(node->allocation_size(), 4 * 5); |
@@ -2447,7 +2447,7 @@ TEST(TrackHeapAllocations) { |
const char* names[] = {"", "start", "f_0_0", "f_0_1", "f_0_2"}; |
AllocationTraceNode* node = |
- FindNode(tracker, Vector<const char*>(names, ARRAY_SIZE(names))); |
+ FindNode(tracker, Vector<const char*>(names, arraysize(names))); |
CHECK_NE(NULL, node); |
CHECK_GE(node->allocation_count(), 100); |
CHECK_GE(node->allocation_size(), 4 * node->allocation_count()); |
@@ -2496,7 +2496,7 @@ TEST(TrackBumpPointerAllocations) { |
tracker->trace_tree()->Print(tracker); |
AllocationTraceNode* node = |
- FindNode(tracker, Vector<const char*>(names, ARRAY_SIZE(names))); |
+ FindNode(tracker, Vector<const char*>(names, arraysize(names))); |
CHECK_NE(NULL, node); |
CHECK_GE(node->allocation_count(), 100); |
CHECK_GE(node->allocation_size(), 4 * node->allocation_count()); |
@@ -2522,7 +2522,7 @@ TEST(TrackBumpPointerAllocations) { |
tracker->trace_tree()->Print(tracker); |
AllocationTraceNode* node = |
- FindNode(tracker, Vector<const char*>(names, ARRAY_SIZE(names))); |
+ FindNode(tracker, Vector<const char*>(names, arraysize(names))); |
CHECK_NE(NULL, node); |
CHECK_LT(node->allocation_count(), 100); |
@@ -2552,7 +2552,7 @@ TEST(TrackV8ApiAllocation) { |
tracker->trace_tree()->Print(tracker); |
AllocationTraceNode* node = |
- FindNode(tracker, Vector<const char*>(names, ARRAY_SIZE(names))); |
+ FindNode(tracker, Vector<const char*>(names, arraysize(names))); |
CHECK_NE(NULL, node); |
CHECK_GE(node->allocation_count(), 2); |
CHECK_GE(node->allocation_size(), 4 * node->allocation_count()); |