| 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 41db739d1bd3e82e1cee03dd24913ad60b5c225d..79ba151c29eb8dcbf1f451e7b1a565ba5f60c9d3 100644
|
| --- a/src/full-codegen/arm64/full-codegen-arm64.cc
|
| +++ b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| @@ -1205,11 +1205,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);
|
|
|