Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 7839faaddf61e4234b16d6109bc9c6e1c26fde18..d2ffb9c3c81a5871cbe8ffd159c1e223c4c8a142 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -9234,6 +9234,7 @@ void JSFunction::MarkForLazyRecompilation() { |
ASSERT(!IsOptimized()); |
ASSERT(shared()->allows_lazy_compilation() || |
code()->optimizable()); |
+ ASSERT(!shared()->is_generator()); |
set_code_no_write_barrier( |
GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile)); |
// No write barrier required, since the builtin is part of the root set. |
@@ -9244,10 +9245,8 @@ void JSFunction::MarkForParallelRecompilation() { |
ASSERT(is_compiled() || GetIsolate()->DebuggerHasBreakPoints()); |
ASSERT(!IsOptimized()); |
ASSERT(shared()->allows_lazy_compilation() || code()->optimizable()); |
- if (!FLAG_parallel_recompilation) { |
- JSFunction::MarkForLazyRecompilation(); |
- return; |
- } |
+ ASSERT(!shared()->is_generator()); |
+ ASSERT(FLAG_parallel_recompilation); |
if (FLAG_trace_parallel_recompilation) { |
PrintF(" ** Marking "); |
PrintName(); |