| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 2ad1ff447e26d51a7b4750ab979e8a9b96d0a1bb..53402416c59b3c65759714d752236827c42e3337 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -1371,6 +1371,10 @@ Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo(
|
| // appropriately sized.
|
| DCHECK(!info.code().is_null());
|
| scope_info = ScopeInfo::Create(info.isolate(), info.zone(), info.scope());
|
| + if (literal->should_eager_compile() &&
|
| + literal->should_be_used_once_hint()) {
|
| + info.code()->MarkToBeExecutedOnce(isolate);
|
| + }
|
| } else {
|
| return Handle<SharedFunctionInfo>::null();
|
| }
|
|
|