| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index d1959bb0ab5f489f50a1d8c58bc87eac346d5d2c..cb8c2eed1c63c66a9f13f9ef6e596b6624048cb1 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -5295,11 +5295,8 @@ void HOptimizedGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) {
|
| DCHECK(!HasStackOverflow());
|
| DCHECK(current_block() != NULL);
|
| DCHECK(current_block()->HasPredecessor());
|
| - Handle<SharedFunctionInfo> shared_info = expr->shared_info();
|
| - if (shared_info.is_null()) {
|
| - shared_info =
|
| - Compiler::BuildFunctionInfo(expr, current_info()->script(), top_info());
|
| - }
|
| + Handle<SharedFunctionInfo> shared_info = Compiler::GetSharedFunctionInfo(
|
| + expr, current_info()->script(), top_info());
|
| // We also have a stack overflow if the recursive compilation did.
|
| if (HasStackOverflow()) return;
|
| HFunctionLiteral* instr =
|
| @@ -11673,7 +11670,7 @@ void HOptimizedGraphBuilder::VisitFunctionDeclaration(
|
| switch (variable->location()) {
|
| case Variable::UNALLOCATED: {
|
| globals_.Add(variable->name(), zone());
|
| - Handle<SharedFunctionInfo> function = Compiler::BuildFunctionInfo(
|
| + Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo(
|
| declaration->fun(), current_info()->script(), top_info());
|
| // Check for stack-overflow exception.
|
| if (function.is_null()) return SetStackOverflow();
|
|
|