| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 98191ce650daab15f282f0ab7a496e084c606d34..99970bed1d5f58b7fde8f193aa03025b16c632ec 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -4736,7 +4736,9 @@ void HOptimizedGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) {
|
| ASSERT(current_block()->HasPredecessor());
|
| Handle<SharedFunctionInfo> shared_info = expr->shared_info();
|
| if (shared_info.is_null()) {
|
| - shared_info = Compiler::BuildFunctionInfo(expr, current_info()->script());
|
| + shared_info = Compiler::BuildFunctionInfo(expr,
|
| + current_info()->script(),
|
| + false);
|
| }
|
| // We also have a stack overflow if the recursive compilation did.
|
| if (HasStackOverflow()) return;
|
| @@ -7410,6 +7412,8 @@ bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target,
|
| return false;
|
| }
|
|
|
| + target_info.ProcessFeedbackSlots();
|
| +
|
| if (target_info.scope()->num_heap_slots() > 0) {
|
| TraceInline(target, caller, "target has context-allocated variables");
|
| return false;
|
| @@ -10278,7 +10282,7 @@ void HOptimizedGraphBuilder::VisitFunctionDeclaration(
|
| case Variable::UNALLOCATED: {
|
| globals_.Add(variable->name(), zone());
|
| Handle<SharedFunctionInfo> function = Compiler::BuildFunctionInfo(
|
| - declaration->fun(), current_info()->script());
|
| + declaration->fun(), current_info()->script(), false);
|
| // Check for stack-overflow exception.
|
| if (function.is_null()) return SetStackOverflow();
|
| globals_.Add(function, zone());
|
|
|