Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: src/allocation.cc

Issue 2108273003: Strictly disable instantiation of AllStatic class (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Strictly disable instantiation of AllStatic class Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/allocation.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/allocation.cc
diff --git a/src/allocation.cc b/src/allocation.cc
index 851cd61ffcf5be28b3890dd9ffa2ed73a607ede0..195a5443c8ad51de9c30f436827af0e1c5fb3d81 100644
--- a/src/allocation.cc
+++ b/src/allocation.cc
@@ -46,17 +46,6 @@ void Embedded::operator delete(void* p) {
UNREACHABLE();
}
-
-void* AllStatic::operator new(size_t size) {
- UNREACHABLE();
- return invalid;
-}
-
-
-void AllStatic::operator delete(void* p) {
- UNREACHABLE();
-}
-
#endif
« no previous file with comments | « src/allocation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698