| 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 a6736e3d5351ce119059621bc2cf257f3f98528b..e692145a1c17397d6c0eba2e69241d0c4729f5ab 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -1207,8 +1207,11 @@
|
| // 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()) {
|
| + if (!FLAG_always_opt &&
|
| + !FLAG_prepare_always_opt &&
|
| + !pretenure &&
|
| + scope()->is_function_scope() &&
|
| + info->num_literals() == 0) {
|
| FastNewClosureStub stub(isolate(), info->language_mode(), info->kind());
|
| __ li(a2, Operand(info));
|
| __ CallStub(&stub);
|
|
|