| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 01e261a95b6470f4857bc8ef841d59727df87741..2c906a25c87ab35289101329cb62fb9a446e0b47 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -555,6 +555,17 @@ static bool DebuggerWantsEagerCompilation(CompilationInfo* info,
|
| }
|
|
|
|
|
| +// 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;
|
| +
|
| + shared->set_expected_nof_properties(
|
| + ExpectedNofPropertiesFromEstimate(estimate));
|
| +}
|
| +
|
| +
|
| static Handle<SharedFunctionInfo> MakeFunctionInfo(CompilationInfo* info) {
|
| Isolate* isolate = info->isolate();
|
| PostponeInterruptsScope postpone(isolate);
|
|
|