summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/node/files/patch-deps_v8_src_compiler_instruction.h11
-rw-r--r--www/node/files/patch-deps_v8_src_compiler_js-type-feedback.h15
-rw-r--r--www/node/files/patch-deps_v8_src_zone-containers.h18
3 files changed, 44 insertions, 0 deletions
diff --git a/www/node/files/patch-deps_v8_src_compiler_instruction.h b/www/node/files/patch-deps_v8_src_compiler_instruction.h
new file mode 100644
index 000000000000..9868d91d7b47
--- /dev/null
+++ b/www/node/files/patch-deps_v8_src_compiler_instruction.h
@@ -0,0 +1,11 @@
+--- deps/v8/src/compiler/instruction.h.orig 2016-03-16 21:22:58.000000000 +0100
++++ deps/v8/src/compiler/instruction.h 2016-03-24 23:27:23.004854000 +0100
+@@ -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/node/files/patch-deps_v8_src_compiler_js-type-feedback.h b/www/node/files/patch-deps_v8_src_compiler_js-type-feedback.h
new file mode 100644
index 000000000000..a203b901872a
--- /dev/null
+++ b/www/node/files/patch-deps_v8_src_compiler_js-type-feedback.h
@@ -0,0 +1,15 @@
+--- deps/v8/src/compiler/js-type-feedback.h.orig 2016-03-16 21:22:58.000000000 +0100
++++ deps/v8/src/compiler/js-type-feedback.h 2016-03-24 22:54:54.529827000 +0100
+@@ -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/node/files/patch-deps_v8_src_zone-containers.h b/www/node/files/patch-deps_v8_src_zone-containers.h
new file mode 100644
index 000000000000..4724e794376e
--- /dev/null
+++ b/www/node/files/patch-deps_v8_src_zone-containers.h
@@ -0,0 +1,18 @@
+--- deps/v8/src/zone-containers.h.orig 2016-03-16 21:22:58.000000000 +0100
++++ deps/v8/src/zone-containers.h 2016-03-24 23:34:37.741885000 +0100
+@@ -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)) {}
+ };
+
+