| Index: src/arm64/full-codegen-arm64.cc
|
| diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc
|
| index c5a71b5199676a1db10d35f9d8d1829180af6223..c6d32670ee7e5e99c9add5f014c7dc6a2c7cfd67 100644
|
| --- a/src/arm64/full-codegen-arm64.cc
|
| +++ b/src/arm64/full-codegen-arm64.cc
|
| @@ -155,7 +155,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 > 0) {
|
| if (locals_count >= 128) {
|
|
|