| Index: src/arm/codegen-arm.cc
|
| diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc
|
| index 5156302bddbf7e2171fe8d89d8ed112cea9ac5eb..684106c3392c7f3915cec98c08f9fd47819d186b 100644
|
| --- a/src/arm/codegen-arm.cc
|
| +++ b/src/arm/codegen-arm.cc
|
| @@ -3132,9 +3132,9 @@ void CodeGenerator::VisitFunctionLiteral(FunctionLiteral* node) {
|
|
|
| // Build the function info and instantiate it.
|
| Handle<SharedFunctionInfo> function_info =
|
| - Compiler::BuildFunctionInfo(node, script(), this);
|
| - // Check for stack-overflow exception.
|
| - if (HasStackOverflow()) {
|
| + Compiler::BuildFunctionInfo(node, script());
|
| + if (function_info.is_null()) {
|
| + SetStackOverflow();
|
| ASSERT(frame_->height() == original_height);
|
| return;
|
| }
|
|
|