Index: src/objects-inl.h |
=================================================================== |
--- src/objects-inl.h (revision 5515) |
+++ src/objects-inl.h (working copy) |
@@ -2292,6 +2292,19 @@ |
} |
+void Map::set_is_shared(bool value) { |
+ if (value) { |
+ set_bit_field2(bit_field2() | (1 << kIsShared)); |
+ } else { |
+ set_bit_field2(bit_field2() & ~(1 << kIsShared)); |
+ } |
+} |
+ |
+bool Map::is_shared() { |
+ return ((1 << kIsShared) & bit_field2()) != 0; |
+} |
+ |
+ |
JSFunction* Map::unchecked_constructor() { |
return reinterpret_cast<JSFunction*>(READ_FIELD(this, kConstructorOffset)); |
} |