Index: test/cctest/test-cpu-profiler.cc |
diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc |
index 9bcefa4b86b3bb67d48f2a0cd2681d2b9d8a0b85..d3fcf7d7edee3ea842834152a547c9618bdab92e 100644 |
--- a/test/cctest/test-cpu-profiler.cc |
+++ b/test/cctest/test-cpu-profiler.cc |
@@ -148,8 +148,7 @@ TEST(CodeEvents) { |
// Enqueue code creation events. |
const char* aaa_str = "aaa"; |
- i::Handle<i::String> aaa_name = factory->NewStringFromAscii( |
- i::Vector<const char>(aaa_str, i::StrLength(aaa_str))); |
+ i::Handle<i::String> aaa_name = factory->NewStringFromAsciiChecked(aaa_str); |
profiler.CodeCreateEvent(i::Logger::FUNCTION_TAG, aaa_code, *aaa_name); |
profiler.CodeCreateEvent(i::Logger::BUILTIN_TAG, comment_code, "comment"); |
profiler.CodeCreateEvent(i::Logger::STUB_TAG, args5_code, 5); |