| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 99cb2553b3b27ca490ef13a274ad546010391856..c64ddf8155c6038515a96a6eb589347b14b07339 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -518,7 +518,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,
|
|
|