Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 38e1f94ab0fcf108c1c73c35963675bc505ccb0f..37ce2f0cc030793136259aff2a546cfc7b8fe0a1 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1653,7 +1653,7 @@ Handle<JSGeneratorObject> Factory::NewJSGeneratorObject( |
DCHECK(function->shared()->is_generator()); |
JSFunction::EnsureHasInitialMap(function); |
Handle<Map> map(function->initial_map()); |
- DCHECK(map->instance_type() == JS_GENERATOR_OBJECT_TYPE); |
+ DCHECK_EQ(JS_GENERATOR_OBJECT_TYPE, map->instance_type()); |
CALL_HEAP_FUNCTION( |
isolate(), |
isolate()->heap()->AllocateJSObjectFromMap(*map), |