| Index: src/full-codegen/arm64/full-codegen-arm64.cc
|
| diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| index e4141bb65f110cc5d24d8c5fb7d5101dde9db409..3c426a63b4cf997f924570a878a9cb894990f942 100644
|
| --- a/src/full-codegen/arm64/full-codegen-arm64.cc
|
| +++ b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| @@ -1210,11 +1210,8 @@ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info,
|
| // 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());
|
| __ Mov(x2, Operand(info));
|
| __ CallStub(&stub);
|
|
|