Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index 35fe7566383bf923a3aaac66651c2f7041b18665..c3e50005da5161254a9378eb3337dfa72856a384 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -149,8 +149,6 @@ void FullCodeGenerator::Generate() { |
// Reserve space on the stack for locals. |
{ Comment cmnt(masm_, "[ Allocate locals"); |
int locals_count = info->scope()->num_stack_slots(); |
- // Generators allocate locals, if any, in context slots. |
- DCHECK(!IsGeneratorFunction(info->literal()->kind()) || locals_count == 0); |
OperandStackDepthIncrement(locals_count); |
if (locals_count > 0) { |
if (locals_count >= 128) { |