| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index 383ac93924fc61ab41003b51dd2635bbfc1a52e6..9495a211a498a6eab6f75074477727a4f53b6c35 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -386,7 +386,7 @@ void AstGraphBuilder::VisitFunctionDeclaration(FunctionDeclaration* decl) {
|
| switch (variable->location()) {
|
| case Variable::UNALLOCATED: {
|
| Handle<SharedFunctionInfo> function =
|
| - Compiler::BuildFunctionInfo(decl->fun(), info()->script());
|
| + Compiler::BuildFunctionInfo(decl->fun(), info()->script(), info());
|
| // Check for stack-overflow exception.
|
| if (function.is_null()) return SetStackOverflow();
|
| globals()->Add(variable->name(), zone());
|
| @@ -787,7 +787,7 @@ void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) {
|
| Handle<SharedFunctionInfo> shared_info =
|
| SearchSharedFunctionInfo(info()->shared_info()->code(), expr);
|
| if (shared_info.is_null()) {
|
| - shared_info = Compiler::BuildFunctionInfo(expr, info()->script());
|
| + shared_info = Compiler::BuildFunctionInfo(expr, info()->script(), info());
|
| CHECK(!shared_info.is_null()); // TODO(mstarzinger): Set stack overflow?
|
| }
|
|
|
|
|