From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Ales Pergl Date: Mon, 22 Oct 2018 10:47:12 -0700 Subject: dcheck.patch https://github.com/auchenberg/volkswagen diff --git a/src/api/api.cc b/src/api/api.cc index 1a2cd2c1566fab5ec67a23956bcf998e4252f84f..2de35499e25a930169af6b82e82e3c38b65da0b7 100644 --- a/src/api/api.cc +++ b/src/api/api.cc @@ -8689,7 +8689,7 @@ void Isolate::SetPromiseRejectCallback(PromiseRejectCallback callback) { } void Isolate::PerformMicrotaskCheckpoint() { - DCHECK_NE(MicrotasksPolicy::kScoped, GetMicrotasksPolicy()); + //DCHECK_NE(MicrotasksPolicy::kScoped, GetMicrotasksPolicy()); i::Isolate* isolate = reinterpret_cast(this); isolate->default_microtask_queue()->PerformCheckpoint(this); } diff --git a/src/heap/heap.cc b/src/heap/heap.cc index 687122d04f0569f6b8e1bc2f177b2d9f7dc775f5..5034492ec5f88fcc5c1b6c4b3d2dea3c52258a3e 100644 --- a/src/heap/heap.cc +++ b/src/heap/heap.cc @@ -5474,9 +5474,9 @@ void Heap::TearDown() { void Heap::AddGCPrologueCallback(v8::Isolate::GCCallbackWithData callback, GCType gc_type, void* data) { DCHECK_NOT_NULL(callback); - DCHECK(gc_prologue_callbacks_.end() == - std::find(gc_prologue_callbacks_.begin(), gc_prologue_callbacks_.end(), - GCCallbackTuple(callback, gc_type, data))); +// DCHECK(gc_prologue_callbacks_.end() == +// std::find(gc_prologue_callbacks_.begin(), gc_prologue_callbacks_.end(), +// GCCallbackTuple(callback, gc_type, data))); gc_prologue_callbacks_.emplace_back(callback, gc_type, data); }