Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index fea916b03292676f5f088249f161b424ceb22b95..652044ed25cc91cc9e4c10de4eff6a7cdfa2c3cc 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4470,8 +4470,12 @@ bool Map::has_non_instance_prototype() { |
} |
-void Map::set_is_constructor() { |
- set_bit_field(bit_field() | (1 << kIsConstructor)); |
+void Map::set_is_constructor(bool value) { |
+ if (value) { |
+ set_bit_field(bit_field() | (1 << kIsConstructor)); |
+ } else { |
+ set_bit_field(bit_field() & ~(1 << kIsConstructor)); |
+ } |
} |