Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 432d6133bd42437023aa55a9929aa9670971121b..7e1c5b1eb37ab6cc5653d4f9f8d2c67fbb48f362 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -3372,6 +3372,7 @@ bool Name::Equals(Handle<Name> one, Handle<Name> two) { |
ACCESSORS(Symbol, name, Object, kNameOffset) |
ACCESSORS(Symbol, flags, Smi, kFlagsOffset) |
BOOL_ACCESSORS(Symbol, flags, is_private, kPrivateBit) |
+BOOL_ACCESSORS(Symbol, flags, is_own, kOwnBit) |
bool String::Equals(String* other) { |
@@ -6496,6 +6497,10 @@ uint32_t Name::Hash() { |
return String::cast(this)->ComputeAndSetHash(); |
} |
+bool Name::IsOwn() { |
+ return this->IsSymbol() && Symbol::cast(this)->is_own(); |
+} |
+ |
StringHasher::StringHasher(int length, uint32_t seed) |
: length_(length), |