From c1effb1255a7137316f9d6a8c12263adb40acbdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstr=C3=B6m?= Date: Wed, 23 Nov 2016 10:09:53 -0300 Subject: [PATCH] deps: fix build with libc++ 3.8.0 Make sure the map allocators are of the same type. This fixes building Node.js 4.x on libc++ 3.8.0 (for instance FreeBSD 11). Upstream bug/patch: https://bugs.freebsd.org/208467 PR-URL: https://github.com/nodejs/node/pull/9763 Reviewed-By: Ben Noordhuis Reviewed-By: Myles Borins Reviewed-By: Ali Ijaz Sheikh --- deps/v8/src/compiler/instruction.h | 2 +- deps/v8/src/compiler/js-type-feedback.h | 5 +++-- deps/v8/src/zone-containers.h | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/deps/v8/src/compiler/instruction.h b/deps/v8/src/compiler/instruction.h index b7c9430fe0..ed9a5d7f05 100644 --- a/deps/v8/src/compiler/instruction.h +++ b/deps/v8/src/compiler/instruction.h @@ -1012,7 +1012,7 @@ class InstructionBlock final : public ZoneObject { typedef ZoneDeque ConstantDeque; typedef std::map, - zone_allocator > > ConstantMap; + zone_allocator > > ConstantMap; typedef ZoneDeque InstructionDeque; typedef ZoneDeque ReferenceMapDeque; diff --git a/deps/v8/src/compiler/js-type-feedback.h b/deps/v8/src/compiler/js-type-feedback.h index 84060f8096..6b8ff5adb1 100644 --- a/deps/v8/src/compiler/js-type-feedback.h +++ b/deps/v8/src/compiler/js-type-feedback.h @@ -33,9 +33,10 @@ class JSTypeFeedbackTable : public ZoneObject { private: friend class JSTypeFeedbackSpecializer; typedef std::map, - zone_allocator > TypeFeedbackIdMap; + zone_allocator > > + TypeFeedbackIdMap; typedef std::map, - zone_allocator > + zone_allocator > > FeedbackVectorICSlotMap; TypeFeedbackIdMap type_feedback_id_map_; diff --git a/deps/v8/src/zone-containers.h b/deps/v8/src/zone-containers.h index 8daf0dd657..79b168c37e 100644 --- a/deps/v8/src/zone-containers.h +++ b/deps/v8/src/zone-containers.h @@ -114,12 +114,12 @@ class ZoneSet : public std::set> { // a zone allocator. template > class ZoneMap - : public std::map>> { + : public std::map>> { public: // Constructs an empty map. explicit ZoneMap(Zone* zone) - : std::map>>( - Compare(), zone_allocator>(zone)) {} + : std::map>>( + Compare(), zone_allocator>(zone)) {} };