diff --git a/src/deoptimizer.h b/src/deoptimizer.h index 033d92480b..8641261b17 100644 --- a/src/deoptimizer.h +++ b/src/deoptimizer.h @@ -336,6 +336,10 @@ class FrameDescription { return malloc(size + frame_size - kPointerSize); } + void operator delete(void* pointer, uint32_t frame_size) { + free(pointer); + } + void operator delete(void* description) { free(description); } diff --git a/src/zone.h b/src/zone.h index 4dfd01d358..f60ac0d3ef 100644 --- a/src/zone.h +++ b/src/zone.h @@ -152,6 +152,7 @@ class ZoneObject { // ZoneObjects should never be deleted individually; use // Zone::DeleteAll() to delete all zone objects in one go. void operator delete(void*, size_t) { UNREACHABLE(); } + void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); } }; @@ -197,6 +198,9 @@ class ZoneList: public List { : List(other.length()) { AddAll(other); } + + void operator delete(void* pointer) { UNREACHABLE(); } + void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); } };