| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 1b84c89f5742b551b789fb8e34ea58a4c8a739f8..b20a25291d75cdc69452ddaa2d259830b7362e3a 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -508,6 +508,9 @@ void OptimizedCompileJob::RecordOptimizationStats() {
|
| // Sets the expected number of properties based on estimate from compiler.
|
| void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared,
|
| int estimate) {
|
| + // See the comment in SetExpectedNofProperties.
|
| + if (shared->live_objects_may_exist()) return;
|
| +
|
| // If no properties are added in the constructor, they are more likely
|
| // to be added later.
|
| if (estimate == 0) estimate = 2;
|
|
|