Chromium Code Reviews| Index: src/objects.cc |
| diff --git a/src/objects.cc b/src/objects.cc |
| index a3163eb619c6d76ff18ab33db93ded19414542c3..ad1cfebb9258b71d545fd421680e796ddb9c93b2 100644 |
| --- a/src/objects.cc |
| +++ b/src/objects.cc |
| @@ -8403,6 +8403,7 @@ bool SharedFunctionInfo::CanGenerateInlineConstructor(Object* prototype) { |
| // Check the basic conditions for generating inline constructor code. |
| if (!FLAG_inline_new |
| || !has_only_simple_this_property_assignments() |
| + || is_generator() |
| || this_property_assignments_count() == 0) { |
| return false; |
| } |