Commit 466166b8 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

Make PropertyCell's set_name method private

It is only used during initialization.

Bug: v8:7790
Change-Id: I2105ad01413e3b398b3252d14e83c930c0dd3e74
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2536637Reviewed-by: 's avatarSantiago Aboy Solanes <solanes@chromium.org>
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Auto-Submit: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71186}
parent f72a7196
......@@ -91,11 +91,14 @@
} \
type holder::name(IsolateRoot isolate) const
#define DECL_ACCESSORS(name, type) \
DECL_GETTER(name, type) \
#define DECL_SETTER(name, type) \
inline void set_##name(type value, \
WriteBarrierMode mode = UPDATE_WRITE_BARRIER);
#define DECL_ACCESSORS(name, type) \
DECL_GETTER(name, type) \
DECL_SETTER(name, type)
#define DECL_ACCESSORS_LOAD_TAG(name, type, tag_type) \
inline type name(tag_type tag) const; \
inline type name(IsolateRoot isolate, tag_type) const;
......
......@@ -17,7 +17,7 @@ namespace internal {
class PropertyCell : public HeapObject {
public:
// [name]: the name of the global property.
DECL_ACCESSORS(name, Name)
DECL_GETTER(name, Name)
// [property_details]: details of the global property.
DECL_ACCESSORS(property_details_raw, Smi)
// [value]: value of the global property.
......@@ -70,6 +70,11 @@ class PropertyCell : public HeapObject {
using BodyDescriptor = FixedBodyDescriptor<kNameOffset, kSize, kSize>;
OBJECT_CONSTRUCTORS(PropertyCell, HeapObject);
private:
friend class Factory;
DECL_SETTER(name, Name)
};
} // namespace internal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment