| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index d8cb6a1be6bc0c95238a3bbc772b7b02f20e2faf..26dd8550d6a70394d684469ba4918131f4014671 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -763,10 +763,10 @@ void Heap::PreprocessStackTraces() {
|
| // If GC happens while adding a stack trace to the weak fixed array,
|
| // which has been copied into a larger backing store, we may run into
|
| // a stack trace that has already been preprocessed. Guard against this.
|
| - if (!maybe_code->IsCode()) break;
|
| - Code* code = Code::cast(maybe_code);
|
| + if (!maybe_code->IsAbstractCode()) break;
|
| + AbstractCode* abstract_code = AbstractCode::cast(maybe_code);
|
| int offset = Smi::cast(elements->get(j + 3))->value();
|
| - int pos = code->SourcePosition(offset);
|
| + int pos = abstract_code->SourcePosition(offset);
|
| elements->set(j + 2, Smi::FromInt(pos));
|
| }
|
| }
|
|
|