diff options
Diffstat (limited to 'deps/v8/src/objects/dictionary.h')
-rw-r--r-- | deps/v8/src/objects/dictionary.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/deps/v8/src/objects/dictionary.h b/deps/v8/src/objects/dictionary.h index 0bce08393f..ca709f34d8 100644 --- a/deps/v8/src/objects/dictionary.h +++ b/deps/v8/src/objects/dictionary.h @@ -6,11 +6,11 @@ #define V8_OBJECTS_DICTIONARY_H_ #include "src/base/export-template.h" -#include "src/globals.h" +#include "src/common/globals.h" #include "src/objects/hash-table.h" #include "src/objects/property-array.h" #include "src/objects/smi.h" -#include "src/roots.h" +#include "src/roots/roots.h" // Has to be the last include (doesn't have include guards): #include "src/objects/object-macros.h" @@ -99,16 +99,16 @@ class BaseDictionaryShape : public BaseShape<Key> { static inline PropertyDetails DetailsAt(Dictionary dict, int entry) { STATIC_ASSERT(Dictionary::kEntrySize == 3); DCHECK_GE(entry, 0); // Not found is -1, which is not caught by get(). - return PropertyDetails(Smi::cast(dict->get( - Dictionary::EntryToIndex(entry) + Dictionary::kEntryDetailsIndex))); + return PropertyDetails(Smi::cast(dict.get(Dictionary::EntryToIndex(entry) + + Dictionary::kEntryDetailsIndex))); } template <typename Dictionary> static inline void DetailsAtPut(Isolate* isolate, Dictionary dict, int entry, PropertyDetails value) { STATIC_ASSERT(Dictionary::kEntrySize == 3); - dict->set(Dictionary::EntryToIndex(entry) + Dictionary::kEntryDetailsIndex, - value.AsSmi()); + dict.set(Dictionary::EntryToIndex(entry) + Dictionary::kEntryDetailsIndex, + value.AsSmi()); } }; @@ -341,10 +341,6 @@ class NumberDictionary static const int kMaxNumberKeyIndex = kPrefixStartIndex; void UpdateMaxNumberKey(uint32_t key, Handle<JSObject> dictionary_holder); - // Returns true if the dictionary contains any elements that are non-writable, - // non-configurable, non-enumerable, or have getters/setters. - bool HasComplexElements(); - // Sorting support void CopyValuesTo(FixedArray elements); |