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

Unified Diff: src/zone/zone.h

Issue 2394213003: Named all zones in the project (Closed)
Patch Set: Merge branch 'master' into zonenames Created 4 years, 2 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/wasm/wasm-module.cc ('k') | test/cctest/cctest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone/zone.h
diff --git a/src/zone/zone.h b/src/zone/zone.h
index 0a9aff0d14a6615b24ce972a4d01c6d9772020dc..892dfb7f5662a8b551a737535725435a2b39a4f8 100644
--- a/src/zone/zone.h
+++ b/src/zone/zone.h
@@ -14,6 +14,12 @@
#include "src/splay-tree.h"
#include "src/zone/accounting-allocator.h"
+#ifndef ZONE_NAME
+#define STRINGIFY(x) #x
+#define TOSTRING(x) STRINGIFY(x)
+#define ZONE_NAME __FILE__ ":" TOSTRING(__LINE__)
+#endif
+
namespace v8 {
namespace internal {
@@ -31,7 +37,7 @@ namespace internal {
// from multi-threaded code.
class V8_EXPORT_PRIVATE Zone final {
public:
- explicit Zone(AccountingAllocator* allocator, const char* name = "unnamed");
+ Zone(AccountingAllocator* allocator, const char* name);
~Zone();
// Allocate 'size' bytes of memory in the Zone; expands the Zone by
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | test/cctest/cctest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698