| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 6fa60a3dea6efe24cbcf5e7b064bf4e2a296544e..518c3a5b48abcb5cfad0fd676a48394dbd4c9f1b 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -541,7 +541,7 @@ void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared,
|
| // TODO(yangguo): check whether those heuristics are still up-to-date.
|
| // We do not shrink objects that go into a snapshot (yet), so we adjust
|
| // the estimate conservatively.
|
| - if (Serializer::enabled()) {
|
| + if (Serializer::enabled(shared->GetIsolate())) {
|
| estimate += 2;
|
| } else if (FLAG_clever_optimizations) {
|
| // Inobject slack tracking will reclaim redundant inobject space later,
|
|
|