Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 75349e99d2793205704b44f396a83e67f21702e6..6fcdfc405a042e8ab0ab6b15e4cc4221211c3f56 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1370,6 +1370,9 @@ 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()) { |
+ info.code()->MarkToBeExecutedOnce(isolate); |
+ } |
} else { |
return Handle<SharedFunctionInfo>::null(); |
} |