Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 611a2c5c38eb0c59c6f5851b8f6a812316c5eab8..8ab3763e7c584a40e1eda68db5d508ea0c8d739f 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.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) { |
__ push(Immediate(isolate()->factory()->undefined_value())); |
} else if (locals_count > 1) { |