| Index: test/cctest/test-mark-compact.cc
|
| diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc
|
| index 48610b09acf78e8781ee07580f4c02531e50eb94..c5c4085540df492d44b59e7948712d275b93a117 100644
|
| --- a/test/cctest/test-mark-compact.cc
|
| +++ b/test/cctest/test-mark-compact.cc
|
| @@ -182,8 +182,8 @@ TEST(MarkCompactCollector) {
|
| JSObject::kHeaderSize)->ToObjectChecked();
|
|
|
| // allocate a garbage
|
| - String* func_name =
|
| - String::cast(HEAP->LookupUtf8Symbol("theFunction")->ToObjectChecked());
|
| + String* func_name = String::cast(
|
| + HEAP->InternalizeUtf8String("theFunction")->ToObjectChecked());
|
| SharedFunctionInfo* function_share = SharedFunctionInfo::cast(
|
| HEAP->AllocateSharedFunctionInfo(func_name)->ToObjectChecked());
|
| JSFunction* function = JSFunction::cast(
|
| @@ -201,8 +201,8 @@ TEST(MarkCompactCollector) {
|
| HEAP->AllocateJSObject(function)->ToObjectChecked());
|
| HEAP->CollectGarbage(OLD_POINTER_SPACE);
|
|
|
| - func_name =
|
| - String::cast(HEAP->LookupUtf8Symbol("theFunction")->ToObjectChecked());
|
| + func_name = String::cast(
|
| + HEAP->InternalizeUtf8String("theFunction")->ToObjectChecked());
|
| CHECK(Isolate::Current()->context()->global_object()->
|
| HasLocalProperty(func_name));
|
| Object* func_value = Isolate::Current()->context()->global_object()->
|
| @@ -212,11 +212,11 @@ TEST(MarkCompactCollector) {
|
|
|
| obj = JSObject::cast(HEAP->AllocateJSObject(function)->ToObjectChecked());
|
| String* obj_name =
|
| - String::cast(HEAP->LookupUtf8Symbol("theObject")->ToObjectChecked());
|
| + String::cast(HEAP->InternalizeUtf8String("theObject")->ToObjectChecked());
|
| Isolate::Current()->context()->global_object()->SetProperty(
|
| obj_name, obj, NONE, kNonStrictMode)->ToObjectChecked();
|
| String* prop_name =
|
| - String::cast(HEAP->LookupUtf8Symbol("theSlot")->ToObjectChecked());
|
| + String::cast(HEAP->InternalizeUtf8String("theSlot")->ToObjectChecked());
|
| obj->SetProperty(prop_name,
|
| Smi::FromInt(23),
|
| NONE,
|
| @@ -225,7 +225,7 @@ TEST(MarkCompactCollector) {
|
| HEAP->CollectGarbage(OLD_POINTER_SPACE);
|
|
|
| obj_name =
|
| - String::cast(HEAP->LookupUtf8Symbol("theObject")->ToObjectChecked());
|
| + String::cast(HEAP->InternalizeUtf8String("theObject")->ToObjectChecked());
|
| CHECK(Isolate::Current()->context()->global_object()->
|
| HasLocalProperty(obj_name));
|
| CHECK(Isolate::Current()->context()->global_object()->
|
| @@ -233,7 +233,7 @@ TEST(MarkCompactCollector) {
|
| obj = JSObject::cast(Isolate::Current()->context()->global_object()->
|
| GetProperty(obj_name)->ToObjectChecked());
|
| prop_name =
|
| - String::cast(HEAP->LookupUtf8Symbol("theSlot")->ToObjectChecked());
|
| + String::cast(HEAP->InternalizeUtf8String("theSlot")->ToObjectChecked());
|
| CHECK(obj->GetProperty(prop_name) == Smi::FromInt(23));
|
| }
|
|
|
|
|