Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index f6a7414fb525af093d8232c35228ce649ec4fa2c..a4a17efeec1194ac9acfc4e1fead128612b7962e 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -153,7 +153,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; |