From 493441248c82d9f39d0947e3bbf4571736e1cf85 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 29 Mar 2017 15:53:00 +0200 Subject: [PATCH 1/1] Fix build with GCC 7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes a few problems with using undeclared functions and ambigious code. Task-number: QTBUG-59776 Change-Id: I59813919b4867d5dd3499a45baed004a1a1c1a3c Reviewed-by: Michael Brüning --- chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h | 2 ++ .../third_party/pdfium/fpdfsdk/javascript/global.cpp | 8 ++++---- chromium/v8/src/objects-body-descriptors.h | 2 +- chromium/v8/src/objects-inl.h | 18 ++++++++++++++++++ chromium/v8/src/objects.h | 16 ++-------------- 5 files changed, 27 insertions(+), 19 deletions(-) diff --git a/src/3rdparty/chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h b/src/3rdparty/chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h index e85c72f..6f94cd6 100644 --- a/src/3rdparty/chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h +++ b/src/3rdparty/chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h @@ -542,6 +542,8 @@ inline LinkedHashSet& LinkedHashSet::operator=(LinkedHas return *this; } +inline void swapAnchor(LinkedHashSetNodeBase& a, LinkedHashSetNodeBase& b); + template inline void LinkedHashSet::swap(LinkedHashSet& other) { diff --git a/src/3rdparty/chromium/v8/src/objects-body-descriptors.h b/src/3rdparty/chromium/v8/src/objects-body-descriptors.h index 91cb888..a1c3634 100644 --- a/src/3rdparty/chromium/v8/src/objects-body-descriptors.h +++ b/src/3rdparty/chromium/v8/src/objects-body-descriptors.h @@ -99,7 +99,7 @@ class FixedBodyDescriptor final : public BodyDescriptorBase { template static inline void IterateBody(HeapObject* obj, int object_size) { - IterateBody(obj); + IterateBody(obj); } }; diff --git a/src/3rdparty/chromium/v8/src/objects-inl.h b/src/3rdparty/chromium/v8/src/objects-inl.h index 58441d3..4c486ea 100644 --- a/src/3rdparty/chromium/v8/src/objects-inl.h +++ b/src/3rdparty/chromium/v8/src/objects-inl.h @@ -7588,6 +7588,24 @@ bool GlobalDictionaryShape::IsDeleted(Dictionary* dict, int entry) { } +template +inline uint32_t HashTable::Hash(Key key) { + if (Shape::UsesSeed) { + return Shape::SeededHash(key, GetHeap()->HashSeed()); + } else { + return Shape::Hash(key); + } +} + +template +inline uint32_t HashTable::HashForObject(Key key, Object* object) { + if (Shape::UsesSeed) { + return Shape::SeededHashForObject(key, GetHeap()->HashSeed(), object); + } else { + return Shape::HashForObject(key, object); + } +} + bool ObjectHashTableShape::IsMatch(Handle key, Object* other) { return key->SameValue(other); } diff --git a/src/3rdparty/chromium/v8/src/objects.h b/src/3rdparty/chromium/v8/src/objects.h index 7d774be..42da5fa 100644 --- a/src/3rdparty/chromium/v8/src/objects.h +++ b/src/3rdparty/chromium/v8/src/objects.h @@ -3194,21 +3194,9 @@ class HashTable : public HashTableBase { typedef Shape ShapeT; // Wrapper methods - inline uint32_t Hash(Key key) { - if (Shape::UsesSeed) { - return Shape::SeededHash(key, GetHeap()->HashSeed()); - } else { - return Shape::Hash(key); - } - } + inline uint32_t Hash(Key key); - inline uint32_t HashForObject(Key key, Object* object) { - if (Shape::UsesSeed) { - return Shape::SeededHashForObject(key, GetHeap()->HashSeed(), object); - } else { - return Shape::HashForObject(key, object); - } - } + inline uint32_t HashForObject(Key key, Object* object); // Returns a new HashTable object. MUST_USE_RESULT static Handle New( -- 2.7.4