From 3d1b3df9486c0e7708065257f7311902f6b7b366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 18 Oct 2017 15:03:02 -0700 Subject: deps: update V8 to 6.2.414.32 PR-URL: https://github.com/nodejs/node/pull/15362 Reviewed-By: Myles Borins Reviewed-By: Colin Ihrig Reviewed-By: Matteo Collina Reviewed-By: Ben Noordhuis --- deps/v8/src/objects/hash-table.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'deps/v8/src/objects/hash-table.h') diff --git a/deps/v8/src/objects/hash-table.h b/deps/v8/src/objects/hash-table.h index 90146c8f29..6b5682535a 100644 --- a/deps/v8/src/objects/hash-table.h +++ b/deps/v8/src/objects/hash-table.h @@ -271,6 +271,7 @@ class ObjectHashTableShape : public BaseShape> { static inline uint32_t HashForObject(Isolate* isolate, Object* object); static inline Handle AsHandle(Isolate* isolate, Handle key); static const int kPrefixSize = 0; + static const int kEntryValueIndex = 1; static const int kEntrySize = 2; static const bool kNeedsHoleCheck = false; }; @@ -311,16 +312,16 @@ class ObjectHashTable Handle key, bool* was_present, int32_t hash); + // Returns the index to the value of an entry. + static inline int EntryToValueIndex(int entry) { + return EntryToIndex(entry) + ObjectHashTableShape::kEntryValueIndex; + } + protected: friend class MarkCompactCollector; void AddEntry(int entry, Object* key, Object* value); void RemoveEntry(int entry); - - // Returns the index to the value of an entry. - static inline int EntryToValueIndex(int entry) { - return EntryToIndex(entry) + 1; - } }; class ObjectHashSetShape : public ObjectHashTableShape { -- cgit v1.2.1