Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index eca7c76c22365bc03fb6829791cf3e4fdb75dac3..77a2f8bba329faf769b7bc1fff5fa0c94adfed4c 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -732,7 +732,7 @@ class FastNewContextStub final : public HydrogenCodeStub { |
static const int kMaximumSlots = 64; |
FastNewContextStub(Isolate* isolate, int slots) : HydrogenCodeStub(isolate) { |
- DCHECK(slots > 0 && slots <= kMaximumSlots); |
+ DCHECK(slots >= 0 && slots <= kMaximumSlots); |
set_sub_minor_key(SlotsBits::encode(slots)); |
} |