| Index: src/x64/full-codegen-x64.cc
|
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
|
| index 917764bd9a1af09f57ce06915156d43c313b36ed..b248dd1ebbf88f200e6ac44acdf87683e402f47c 100644
|
| --- a/src/x64/full-codegen-x64.cc
|
| +++ b/src/x64/full-codegen-x64.cc
|
| @@ -143,7 +143,7 @@ void FullCodeGenerator::Generate() {
|
| { Comment cmnt(masm_, "[ Allocate locals");
|
| int locals_count = info->scope()->num_stack_slots();
|
| // Generators allocate locals, if any, in context slots.
|
| - DCHECK(!info->function()->is_generator() || locals_count == 0);
|
| + DCHECK(!IsGeneratorFunction(info->function()->kind()) || locals_count == 0);
|
| if (locals_count == 1) {
|
| __ PushRoot(Heap::kUndefinedValueRootIndex);
|
| } else if (locals_count > 1) {
|
|
|