aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/property.h
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2018-09-07 17:07:13 +0200
committerMichaël Zasso <targos@protonmail.com>2018-09-07 20:59:13 +0200
commit586db2414a338e1bf6eaf6e672a3adc7ce309f6a (patch)
tree139fa972aef648481ddee22a3a85b99707d28df5 /deps/v8/src/property.h
parent12ed7c94e5160aa6d38e3d2cb2a73dae0a6f9342 (diff)
downloadandroid-node-v8-586db2414a338e1bf6eaf6e672a3adc7ce309f6a.tar.gz
android-node-v8-586db2414a338e1bf6eaf6e672a3adc7ce309f6a.tar.bz2
android-node-v8-586db2414a338e1bf6eaf6e672a3adc7ce309f6a.zip
deps: update V8 to 6.9.427.22
PR-URL: https://github.com/nodejs/node/pull/21983 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'deps/v8/src/property.h')
-rw-r--r--deps/v8/src/property.h26
1 files changed, 9 insertions, 17 deletions
diff --git a/deps/v8/src/property.h b/deps/v8/src/property.h
index eccaeb006f..4173491466 100644
--- a/deps/v8/src/property.h
+++ b/deps/v8/src/property.h
@@ -26,7 +26,7 @@ class Descriptor final BASE_EMBEDDED {
Descriptor() : details_(Smi::kZero) {}
Handle<Name> GetKey() const { return key_; }
- Handle<Object> GetValue() const { return value_; }
+ MaybeObjectHandle GetValue() const { return value_; }
PropertyDetails GetDetails() const { return details_; }
void SetSortedKeyIndex(int index) { details_ = details_.set_pointer(index); }
@@ -39,11 +39,12 @@ class Descriptor final BASE_EMBEDDED {
PropertyAttributes attributes,
PropertyConstness constness,
Representation representation,
- Handle<Object> wrapped_field_type);
+ MaybeObjectHandle wrapped_field_type);
static Descriptor DataConstant(Handle<Name> key, Handle<Object> value,
PropertyAttributes attributes) {
- return Descriptor(key, value, kData, attributes, kDescriptor, kConst,
+ return Descriptor(key, MaybeObjectHandle(value), kData, attributes,
+ kDescriptor, PropertyConstness::kConst,
value->OptimalRepresentation(), 0);
}
@@ -53,31 +54,24 @@ class Descriptor final BASE_EMBEDDED {
static Descriptor AccessorConstant(Handle<Name> key, Handle<Object> foreign,
PropertyAttributes attributes) {
- return Descriptor(key, foreign, kAccessor, attributes, kDescriptor, kConst,
+ return Descriptor(key, MaybeObjectHandle(foreign), kAccessor, attributes,
+ kDescriptor, PropertyConstness::kConst,
Representation::Tagged(), 0);
}
private:
Handle<Name> key_;
- Handle<Object> value_;
+ MaybeObjectHandle value_;
PropertyDetails details_;
protected:
- void Init(Handle<Name> key, Handle<Object> value, PropertyDetails details) {
- DCHECK(key->IsUniqueName());
- DCHECK_IMPLIES(key->IsPrivate(), !details.IsEnumerable());
- key_ = key;
- value_ = value;
- details_ = details;
- }
-
- Descriptor(Handle<Name> key, Handle<Object> value, PropertyDetails details)
+ Descriptor(Handle<Name> key, MaybeObjectHandle value, PropertyDetails details)
: key_(key), value_(value), details_(details) {
DCHECK(key->IsUniqueName());
DCHECK_IMPLIES(key->IsPrivate(), !details_.IsEnumerable());
}
- Descriptor(Handle<Name> key, Handle<Object> value, PropertyKind kind,
+ Descriptor(Handle<Name> key, MaybeObjectHandle value, PropertyKind kind,
PropertyAttributes attributes, PropertyLocation location,
PropertyConstness constness, Representation representation,
int field_index)
@@ -89,8 +83,6 @@ class Descriptor final BASE_EMBEDDED {
DCHECK_IMPLIES(key->IsPrivate(), !details_.IsEnumerable());
}
- friend class DescriptorArray;
- friend class Map;
friend class MapUpdater;
};