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

Unified Diff: src/inspector/Allocator.h

Issue 2359533002: [inspector] replaced V8_INSPECTOR* macros with macros from base/macros.h (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | src/inspector/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/Allocator.h
diff --git a/src/inspector/Allocator.h b/src/inspector/Allocator.h
deleted file mode 100644
index 18da916caca43d5ae4730402309e25b6b017cb08..0000000000000000000000000000000000000000
--- a/src/inspector/Allocator.h
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2016 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef V8_INSPECTOR_ALLOCATOR_H_
-#define V8_INSPECTOR_ALLOCATOR_H_
-
-#include <cstddef>
-#include <cstdint>
-
-enum NotNullTagEnum { NotNullLiteral };
-
-#define V8_INSPECTOR_DISALLOW_NEW() \
- private: \
- void* operator new(size_t) = delete; \
- void* operator new(size_t, NotNullTagEnum, void*) = delete; \
- void* operator new(size_t, void*) = delete; \
- \
- public:
-
-#define V8_INSPECTOR_DISALLOW_COPY(ClassName) \
- private: \
- ClassName(const ClassName&) = delete; \
- ClassName& operator=(const ClassName&) = delete
-
-// Macro that returns a compile time constant with the length of an array, but
-// gives an error if passed a non-array.
-template <typename T, std::size_t Size>
-char (&ArrayLengthHelperFunction(T (&)[Size]))[Size];
-#define V8_INSPECTOR_ARRAY_LENGTH(array) \
- sizeof(::ArrayLengthHelperFunction(array))
-
-#endif // V8_INSPECTOR_ALLOCATOR_H_
« no previous file with comments | « no previous file | src/inspector/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698