|
@@ -10,15 +10,15 @@ Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
|
|
|
|
|
|
diff --git a/lang/node/patches/004-gcc6-undefined-behaviour.patch b/lang/node/patches/004-gcc6-undefined-behaviour.patch
|
|
diff --git a/lang/node/patches/004-gcc6-undefined-behaviour.patch b/lang/node/patches/004-gcc6-undefined-behaviour.patch
|
|
new file mode 100644
|
|
new file mode 100644
|
|
-index 0000000..11b0132
|
|
|
|
|
|
+index 0000000..dbbbcf0
|
|
--- /dev/null
|
|
--- /dev/null
|
|
+++ b/lang/node/patches/004-gcc6-undefined-behaviour.patch
|
|
+++ b/lang/node/patches/004-gcc6-undefined-behaviour.patch
|
|
@@ -0,0 +1,64 @@
|
|
@@ -0,0 +1,64 @@
|
|
+diff --git a/deps/v8/src/heap/incremental-marking.cc b/deps/v8/src/heap/incremental-marking.cc
|
|
+diff --git a/deps/v8/src/heap/incremental-marking.cc b/deps/v8/src/heap/incremental-marking.cc
|
|
-+index 58eb0aa..b2b796f 100644
|
|
|
|
|
|
++index c922e83..2ead8be 100644
|
|
+--- a/deps/v8/src/heap/incremental-marking.cc
|
|
+--- a/deps/v8/src/heap/incremental-marking.cc
|
|
++++ b/deps/v8/src/heap/incremental-marking.cc
|
|
++++ b/deps/v8/src/heap/incremental-marking.cc
|
|
-+@@ -364,7 +364,7 @@ void IncrementalMarking::DeactivateIncrementalWriteBarrier() {
|
|
|
|
|
|
++@@ -379,7 +379,7 @@ void IncrementalMarking::DeactivateIncrementalWriteBarrier() {
|
|
+ DeactivateIncrementalWriteBarrierForSpace(heap_->new_space());
|
|
+ DeactivateIncrementalWriteBarrierForSpace(heap_->new_space());
|
|
+
|
|
+
|
|
+ LargePage* lop = heap_->lo_space()->first_page();
|
|
+ LargePage* lop = heap_->lo_space()->first_page();
|
|
@@ -27,7 +27,7 @@ index 0000000..11b0132
|
|
+ SetOldSpacePageFlags(lop, false, false);
|
|
+ SetOldSpacePageFlags(lop, false, false);
|
|
+ lop = lop->next_page();
|
|
+ lop = lop->next_page();
|
|
+ }
|
|
+ }
|
|
-+@@ -396,7 +396,7 @@ void IncrementalMarking::ActivateIncrementalWriteBarrier() {
|
|
|
|
|
|
++@@ -414,7 +414,7 @@ void IncrementalMarking::ActivateIncrementalWriteBarrier() {
|
|
+ ActivateIncrementalWriteBarrier(heap_->new_space());
|
|
+ ActivateIncrementalWriteBarrier(heap_->new_space());
|
|
+
|
|
+
|
|
+ LargePage* lop = heap_->lo_space()->first_page();
|
|
+ LargePage* lop = heap_->lo_space()->first_page();
|
|
@@ -37,10 +37,10 @@ index 0000000..11b0132
|
|
+ lop = lop->next_page();
|
|
+ lop = lop->next_page();
|
|
+ }
|
|
+ }
|
|
+diff --git a/deps/v8/src/heap/spaces-inl.h b/deps/v8/src/heap/spaces-inl.h
|
|
+diff --git a/deps/v8/src/heap/spaces-inl.h b/deps/v8/src/heap/spaces-inl.h
|
|
-+index c2c4d12..d63ee63 100644
|
|
|
|
|
|
++index 56c2bad..1a45096 100644
|
|
+--- a/deps/v8/src/heap/spaces-inl.h
|
|
+--- a/deps/v8/src/heap/spaces-inl.h
|
|
++++ b/deps/v8/src/heap/spaces-inl.h
|
|
++++ b/deps/v8/src/heap/spaces-inl.h
|
|
-+@@ -155,7 +155,7 @@ Page* Page::Initialize(Heap* heap, MemoryChunk* chunk, Executability executable,
|
|
|
|
|
|
++@@ -148,7 +148,7 @@ Page* Page::Initialize(Heap* heap, MemoryChunk* chunk, Executability executable,
|
|
+
|
|
+
|
|
+ bool PagedSpace::Contains(Address addr) {
|
|
+ bool PagedSpace::Contains(Address addr) {
|
|
+ Page* p = Page::FromAddress(addr);
|
|
+ Page* p = Page::FromAddress(addr);
|
|
@@ -50,10 +50,10 @@ index 0000000..11b0132
|
|
+ }
|
|
+ }
|
|
+
|
|
+
|
|
+diff --git a/deps/v8/src/heap/spaces.cc b/deps/v8/src/heap/spaces.cc
|
|
+diff --git a/deps/v8/src/heap/spaces.cc b/deps/v8/src/heap/spaces.cc
|
|
-+index 0806b25..c0e109b 100644
|
|
|
|
|
|
++index e197f5a..2fe10eb 100644
|
|
+--- a/deps/v8/src/heap/spaces.cc
|
|
+--- a/deps/v8/src/heap/spaces.cc
|
|
++++ b/deps/v8/src/heap/spaces.cc
|
|
++++ b/deps/v8/src/heap/spaces.cc
|
|
-+@@ -2953,7 +2953,7 @@ LargePage* LargeObjectSpace::FindPage(Address a) {
|
|
|
|
|
|
++@@ -2918,7 +2918,7 @@ LargePage* LargeObjectSpace::FindPage(Address a) {
|
|
+ if (e != NULL) {
|
|
+ if (e != NULL) {
|
|
+ DCHECK(e->value != NULL);
|
|
+ DCHECK(e->value != NULL);
|
|
+ LargePage* page = reinterpret_cast<LargePage*>(e->value);
|
|
+ LargePage* page = reinterpret_cast<LargePage*>(e->value);
|
|
@@ -63,10 +63,10 @@ index 0000000..11b0132
|
|
+ return page;
|
|
+ return page;
|
|
+ }
|
|
+ }
|
|
+diff --git a/deps/v8/src/heap/spaces.h b/deps/v8/src/heap/spaces.h
|
|
+diff --git a/deps/v8/src/heap/spaces.h b/deps/v8/src/heap/spaces.h
|
|
-+index 3461de3..e35c057 100644
|
|
|
|
|
|
++index 312d75f..1054672 100644
|
|
+--- a/deps/v8/src/heap/spaces.h
|
|
+--- a/deps/v8/src/heap/spaces.h
|
|
++++ b/deps/v8/src/heap/spaces.h
|
|
++++ b/deps/v8/src/heap/spaces.h
|
|
-+@@ -278,9 +278,9 @@ class MemoryChunk {
|
|
|
|
|
|
++@@ -283,9 +283,9 @@ class MemoryChunk {
|
|
+ // Only works for addresses in pointer spaces, not data or code spaces.
|
|
+ // Only works for addresses in pointer spaces, not data or code spaces.
|
|
+ static inline MemoryChunk* FromAnyPointerAddress(Heap* heap, Address addr);
|
|
+ static inline MemoryChunk* FromAnyPointerAddress(Heap* heap, Address addr);
|
|
+
|
|
+
|