| Index: src/ic/ic.cc
|
| diff --git a/src/ic/ic.cc b/src/ic/ic.cc
|
| index a4ccc489aad30e1c1678771a56aed9cc610d31d7..acdf27a11092a67192e5eeb8d5e501de91ba20dc 100644
|
| --- a/src/ic/ic.cc
|
| +++ b/src/ic/ic.cc
|
| @@ -2372,7 +2372,7 @@ RUNTIME_FUNCTION(Runtime_LoadIC_Miss) {
|
|
|
| } else if (kind == FeedbackVectorSlotKind::LOAD_GLOBAL_IC) {
|
| Handle<Name> key(vector->GetName(vector_slot), isolate);
|
| - DCHECK_NE(*key, *isolate->factory()->empty_string());
|
| + DCHECK_NE(*key, isolate->heap()->empty_string());
|
| DCHECK_EQ(*isolate->global_object(), *receiver);
|
| LoadGlobalICNexus nexus(vector, vector_slot);
|
| LoadGlobalIC ic(IC::NO_EXTRA_FRAME, isolate, &nexus);
|
| @@ -2402,7 +2402,7 @@ RUNTIME_FUNCTION(Runtime_LoadGlobalIC_Miss) {
|
| DCHECK_EQ(FeedbackVectorSlotKind::LOAD_GLOBAL_IC,
|
| vector->GetKind(vector_slot));
|
| Handle<String> name(vector->GetName(vector_slot), isolate);
|
| - DCHECK_NE(*name, *isolate->factory()->empty_string());
|
| + DCHECK_NE(*name, isolate->heap()->empty_string());
|
|
|
| LoadGlobalICNexus nexus(vector, vector_slot);
|
| LoadGlobalIC ic(IC::NO_EXTRA_FRAME, isolate, &nexus);
|
| @@ -2423,7 +2423,7 @@ RUNTIME_FUNCTION(Runtime_LoadGlobalIC_Slow) {
|
| DCHECK_EQ(FeedbackVectorSlotKind::LOAD_GLOBAL_IC,
|
| vector->GetKind(vector_slot));
|
| Handle<String> name(vector->GetName(vector_slot), isolate);
|
| - DCHECK_NE(*name, *isolate->factory()->empty_string());
|
| + DCHECK_NE(*name, isolate->heap()->empty_string());
|
|
|
| Handle<JSGlobalObject> global = isolate->global_object();
|
|
|
| @@ -2436,7 +2436,7 @@ RUNTIME_FUNCTION(Runtime_LoadGlobalIC_Slow) {
|
| script_contexts, lookup_result.context_index);
|
| Handle<Object> result =
|
| FixedArray::get(*script_context, lookup_result.slot_index, isolate);
|
| - if (*result == *isolate->factory()->the_hole_value()) {
|
| + if (*result == isolate->heap()->the_hole_value()) {
|
| THROW_NEW_ERROR_RETURN_FAILURE(
|
| isolate, NewReferenceError(MessageTemplate::kNotDefined, name));
|
| }
|
|
|