aboutsummaryrefslogtreecommitdiff
path: root/www/node4
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2016-04-14 11:08:52 +0000
committerKurt Jaeger <pi@FreeBSD.org>2016-04-14 11:08:52 +0000
commit330e1c8748f1352fed682119b9955ee819a0ebde (patch)
tree2a14b439795a507d1f2b442c02ff90a392dcf5fc /www/node4
parent809d23ca9663327bbc436639d6d3228fc9222dcf (diff)
downloadports-330e1c8748f1352fed682119b9955ee819a0ebde.tar.gz
ports-330e1c8748f1352fed682119b9955ee819a0ebde.zip
www/node012 www/node4: Fix build with libc++ 3.8.0
PR: 208467 Submitted by: dim Approved by: Bradley T. Hughes <bradleythughes@fastmail.fm> (maintainer)
Notes
Notes: svn path=/head/; revision=413257
Diffstat (limited to 'www/node4')
-rw-r--r--www/node4/files/patch-deps_v8_src_compiler_instruction.h11
-rw-r--r--www/node4/files/patch-deps_v8_src_compiler_js-type-feedback.h15
-rw-r--r--www/node4/files/patch-deps_v8_src_zone-containers.h18
3 files changed, 44 insertions, 0 deletions
diff --git a/www/node4/files/patch-deps_v8_src_compiler_instruction.h b/www/node4/files/patch-deps_v8_src_compiler_instruction.h
new file mode 100644
index 000000000000..102a183bdf78
--- /dev/null
+++ b/www/node4/files/patch-deps_v8_src_compiler_instruction.h
@@ -0,0 +1,11 @@
+--- deps/v8/src/compiler/instruction.h.orig 2016-04-01 00:47:45 UTC
++++ deps/v8/src/compiler/instruction.h
+@@ -1011,7 +1011,7 @@ class InstructionBlock final : public Zo
+
+ typedef ZoneDeque<Constant> ConstantDeque;
+ typedef std::map<int, Constant, std::less<int>,
+- zone_allocator<std::pair<int, Constant> > > ConstantMap;
++ zone_allocator<std::pair<const int, Constant> > > ConstantMap;
+
+ typedef ZoneDeque<Instruction*> InstructionDeque;
+ typedef ZoneDeque<ReferenceMap*> ReferenceMapDeque;
diff --git a/www/node4/files/patch-deps_v8_src_compiler_js-type-feedback.h b/www/node4/files/patch-deps_v8_src_compiler_js-type-feedback.h
new file mode 100644
index 000000000000..fa1314f15e5f
--- /dev/null
+++ b/www/node4/files/patch-deps_v8_src_compiler_js-type-feedback.h
@@ -0,0 +1,15 @@
+--- deps/v8/src/compiler/js-type-feedback.h.orig 2016-04-01 00:47:45 UTC
++++ deps/v8/src/compiler/js-type-feedback.h
+@@ -33,9 +33,10 @@ class JSTypeFeedbackTable : public ZoneO
+ private:
+ friend class JSTypeFeedbackSpecializer;
+ typedef std::map<NodeId, TypeFeedbackId, std::less<NodeId>,
+- zone_allocator<TypeFeedbackId> > TypeFeedbackIdMap;
++ zone_allocator<std::pair<const NodeId, TypeFeedbackId> > >
++ TypeFeedbackIdMap;
+ typedef std::map<NodeId, FeedbackVectorICSlot, std::less<NodeId>,
+- zone_allocator<FeedbackVectorICSlot> >
++ zone_allocator<std::pair<const NodeId, FeedbackVectorICSlot> > >
+ FeedbackVectorICSlotMap;
+
+ TypeFeedbackIdMap type_feedback_id_map_;
diff --git a/www/node4/files/patch-deps_v8_src_zone-containers.h b/www/node4/files/patch-deps_v8_src_zone-containers.h
new file mode 100644
index 000000000000..c39a5f7043fd
--- /dev/null
+++ b/www/node4/files/patch-deps_v8_src_zone-containers.h
@@ -0,0 +1,18 @@
+--- deps/v8/src/zone-containers.h.orig 2016-04-01 00:47:46 UTC
++++ deps/v8/src/zone-containers.h
+@@ -114,12 +114,12 @@ class ZoneSet : public std::set<K, Compa
+ // a zone allocator.
+ template <typename K, typename V, typename Compare = std::less<K>>
+ class ZoneMap
+- : public std::map<K, V, Compare, zone_allocator<std::pair<K, V>>> {
++ : public std::map<K, V, Compare, zone_allocator<std::pair<const K, V>>> {
+ public:
+ // Constructs an empty map.
+ explicit ZoneMap(Zone* zone)
+- : std::map<K, V, Compare, zone_allocator<std::pair<K, V>>>(
+- Compare(), zone_allocator<std::pair<K, V>>(zone)) {}
++ : std::map<K, V, Compare, zone_allocator<std::pair<const K, V>>>(
++ Compare(), zone_allocator<std::pair<const K, V>>(zone)) {}
+ };
+
+