Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index c38af93f3039dcabed574b76df3b247f61ca7e04..a57da7fa36169f972290b01ee6f29ef8a4e7eefe 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -441,10 +441,8 @@ TEST(HeapSnapshotConsString) { |
CHECK_EQ(1, global->InternalFieldCount()); |
i::Factory* factory = CcTest::i_isolate()->factory(); |
- i::Handle<i::String> first = |
- factory->NewStringFromAscii(i::CStrVector("0123456789")); |
- i::Handle<i::String> second = |
- factory->NewStringFromAscii(i::CStrVector("0123456789")); |
+ i::Handle<i::String> first = factory->NewStringFromStaticAscii("0123456789"); |
+ i::Handle<i::String> second = factory->NewStringFromStaticAscii("0123456789"); |
i::Handle<i::String> cons_string = |
factory->NewConsString(first, second).ToHandleChecked(); |
@@ -2488,8 +2486,7 @@ TEST(BoxObject) { |
v8::Handle<v8::Object> global = global_proxy->GetPrototype().As<v8::Object>(); |
i::Factory* factory = CcTest::i_isolate()->factory(); |
- i::Handle<i::String> string = |
- factory->NewStringFromAscii(i::CStrVector("string")); |
+ i::Handle<i::String> string = factory->NewStringFromStaticAscii("string"); |
i::Handle<i::Object> box = factory->NewBox(string); |
global->Set(0, v8::ToApiHandle<v8::Object>(box)); |