Index: src/objects-inl.h |
=================================================================== |
--- src/objects-inl.h (revision 12254) |
+++ src/objects-inl.h (working copy) |
@@ -1608,6 +1608,7 @@ |
bool JSObject::HasFastProperties() { |
+ ASSERT(properties()->IsDictionary() == map()->is_dictionary_map()); |
return !properties()->IsDictionary(); |
} |
@@ -3007,11 +3008,22 @@ |
set_bit_field3(IsShared::update(bit_field3(), value)); |
} |
+ |
bool Map::is_shared() { |
return IsShared::decode(bit_field3()); |
} |
+void Map::set_dictionary_map(bool value) { |
+ set_bit_field3(DictionaryMap::update(bit_field3(), value)); |
+} |
+ |
+ |
+bool Map::is_dictionary_map() { |
+ return DictionaryMap::decode(bit_field3()); |
+} |
+ |
+ |
JSFunction* Map::unchecked_constructor() { |
return reinterpret_cast<JSFunction*>(READ_FIELD(this, kConstructorOffset)); |
} |