| Index: src/mark-compact.cc
|
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc
|
| index 54f1396d2c757c36aa9e5965919eca7fc5e5ed47..b7054e43a646cc0486b120324b715635c621acc6 100644
|
| --- a/src/mark-compact.cc
|
| +++ b/src/mark-compact.cc
|
| @@ -1319,7 +1319,7 @@ static inline HeapObject* ShortCircuitConsString(Object** p) {
|
| InstanceType type = map->instance_type();
|
| if ((type & kShortcutTypeMask) != kShortcutTypeTag) return object;
|
|
|
| - Object* second = reinterpret_cast<ConsString*>(object)->unchecked_second();
|
| + Object* second = reinterpret_cast<ConsString*>(object)->second();
|
| Heap* heap = map->GetHeap();
|
| if (second != heap->empty_string()) {
|
| return object;
|
| @@ -1328,7 +1328,7 @@ static inline HeapObject* ShortCircuitConsString(Object** p) {
|
| // Since we don't have the object's start, it is impossible to update the
|
| // page dirty marks. Therefore, we only replace the string with its left
|
| // substring when page dirty marks do not change.
|
| - Object* first = reinterpret_cast<ConsString*>(object)->unchecked_first();
|
| + Object* first = reinterpret_cast<ConsString*>(object)->first();
|
| if (!heap->InNewSpace(object) && heap->InNewSpace(first)) return object;
|
|
|
| *p = first;
|
|
|