| Index: src/full-codegen/ia32/full-codegen-ia32.cc
|
| diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc
|
| index 5e3199c14d84adb729ca16fa4e3fca066311108e..b52e6ea7e8f545341767764657fdfd8bf10cabe4 100644
|
| --- a/src/full-codegen/ia32/full-codegen-ia32.cc
|
| +++ b/src/full-codegen/ia32/full-codegen-ia32.cc
|
| @@ -1134,8 +1134,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());
|
| __ mov(ebx, Immediate(info));
|
| __ CallStub(&stub);
|
|
|