Index: test/cctest/test-cpu-profiler.cc |
diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc |
index 4e4cf28c5cc888b7365129531f675e8d1e67bba1..81d981ec01b2cf52d42c60d90cb4659c8ca674ef 100644 |
--- a/test/cctest/test-cpu-profiler.cc |
+++ b/test/cctest/test-cpu-profiler.cc |
@@ -95,7 +95,7 @@ TEST(CodeEvents) { |
i::HandleScope scope; |
const char* aaa_str = "aaa"; |
i::Handle<i::String> aaa_name = i::Factory::NewStringFromAscii( |
- i::Vector<const char>(aaa_str, strlen(aaa_str))); |
+ i::Vector<const char>(aaa_str, i::StrLength(aaa_str))); |
processor.CodeCreateEvent(i::Logger::FUNCTION_TAG, |
*aaa_name, |
i::Heap::empty_string(), |