| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 9092fb5a65edb8b8389971700643d890806a1eb7..c62d8d6c411498cc415d23263fa651e27696ff59 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -376,6 +376,7 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() {
|
| }
|
|
|
| DCHECK(info()->shared_info()->has_deoptimization_support());
|
| + DCHECK(!info()->is_first_compile());
|
|
|
| // Check the enabling conditions for TurboFan.
|
| bool dont_crankshaft = info()->shared_info()->dont_crankshaft();
|
| @@ -956,6 +957,8 @@ bool Compiler::EnsureDeoptimizationSupport(CompilationInfo* info) {
|
| shared->EnableDeoptimizationSupport(*unoptimized.code());
|
| shared->set_feedback_vector(*unoptimized.feedback_vector());
|
|
|
| + info->MarkAsCompiled();
|
| +
|
| // The scope info might not have been set if a lazily compiled
|
| // function is inlined before being called for the first time.
|
| if (shared->scope_info() == ScopeInfo::Empty(info->isolate())) {
|
|
|