Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index e5e8235c292a15049f7afffd4ca0d0b9b9eb85fb..8d45d12b5457691dac0a49a4708bc9c91f852430 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1896,7 +1896,17 @@ |
} |
-ACCESSORS(Cell, value, Object, kValueOffset) |
+Object* Cell::value() const { |
+ return READ_FIELD(this, kValueOffset); |
+} |
+ |
+ |
+void Cell::set_value(Object* val, WriteBarrierMode ignored) { |
+ // The write barrier is not used for global property cells. |
+ DCHECK(!val->IsPropertyCell() && !val->IsCell()); |
+ WRITE_FIELD(this, kValueOffset, val); |
+} |
+ |
ACCESSORS(PropertyCell, dependent_code, DependentCode, kDependentCodeOffset) |
ACCESSORS(PropertyCell, value, Object, kValueOffset) |