| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 031ad5a0237ac420731bd4076a74d015666036be..810da61060516ac21150788c9c81cf8648acb974 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -625,6 +625,14 @@ StartupData SnapshotCreator::CreateBlob(
|
| data->contexts_.Clear();
|
| }
|
|
|
| + // Complete in-object slack tracking for all functions.
|
| + i::HeapIterator heap_iterator(isolate->heap());
|
| + while (i::HeapObject* current_obj = heap_iterator.next()) {
|
| + if (!current_obj->IsJSFunction()) continue;
|
| + i::JSFunction* fun = i::JSFunction::cast(current_obj);
|
| + fun->CompleteInobjectSlackTrackingIfActive();
|
| + }
|
| +
|
| #ifdef DEBUG
|
| i::ExternalReferenceTable::instance(isolate)->ResetCount();
|
| #endif // DEBUG
|
|
|