| Index: src/compiler/js-typed-lowering.cc
|
| diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc
|
| index 4eb89ccbec234be3d7725a4b60e6909b1a4b66d6..ea9502b3397df65fdd1e6c9c10ddf36c3b0a6380 100644
|
| --- a/src/compiler/js-typed-lowering.cc
|
| +++ b/src/compiler/js-typed-lowering.cc
|
| @@ -1819,8 +1819,8 @@ Reduction JSTypedLowering::ReduceJSCreateClosure(Node* node) {
|
| Handle<SharedFunctionInfo> shared = p.shared_info();
|
|
|
| // Use the FastNewClosureStub that allocates in new space only for nested
|
| - // functions that don't need literals cloning.
|
| - if (p.pretenure() == NOT_TENURED && shared->num_literals() == 0) {
|
| + // functions that don't need pretenuring.
|
| + if (p.pretenure() == NOT_TENURED) {
|
| Isolate* isolate = jsgraph()->isolate();
|
| Callable callable = CodeFactory::FastNewClosure(
|
| isolate, shared->language_mode(), shared->kind());
|
|
|