Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 585e36283fad29c6f730acce2e6393753716202e..e2f89e73e1eaee0275fea906007094a4baec05aa 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -161,7 +161,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) { |
Label ok; |