| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index 07e9fdfc947e390237878c5bc430fbfabbf96a94..127dd6aa6d3c09bf623d6b2ad29d6ca8cee69c92 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -1209,11 +1209,8 @@ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info,
|
| // flag, we need to use the runtime function so that the new function
|
| // we are creating here gets a chance to have its code optimized and
|
| // doesn't just get a copy of the existing unoptimized code.
|
| - if (!FLAG_always_opt &&
|
| - !FLAG_prepare_always_opt &&
|
| - !pretenure &&
|
| - scope()->is_function_scope() &&
|
| - info->num_literals() == 0) {
|
| + if (!FLAG_always_opt && !FLAG_prepare_always_opt && !pretenure &&
|
| + scope()->is_function_scope()) {
|
| FastNewClosureStub stub(isolate(), info->language_mode(), info->kind());
|
| __ li(a2, Operand(info));
|
| __ CallStub(&stub);
|
|
|