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

Unified Diff: Source/wtf/Alias.cpp

Issue 1315113006: Add partitionsOutOfMemoryUsingXXX to know Blink memory usage from OOM crash reports (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 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 | « Source/wtf/Alias.h ('k') | Source/wtf/PartitionAlloc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Alias.cpp
diff --git a/Source/wtf/Alias.cpp b/Source/wtf/Alias.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..6a3d1a840664997d311289591c5a0a3db19aeb4a
--- /dev/null
+++ b/Source/wtf/Alias.cpp
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "wtf/Alias.h"
+
+// TODO(tasak): This code is copied from //base/debug/alias.cc.
+// If Blink is allowed to use //base/debug, remove this code and use //base/debug.
+namespace WTF {
+
+#if COMPILER(MSVC)
+#pragma optimize("", off)
+#endif
+
+void alias(const void* var)
+{
+}
+
+#if COMPILER(MSVC)
+#pragma optimize("", on)
+#endif
+
+} // namespace WTF
« no previous file with comments | « Source/wtf/Alias.h ('k') | Source/wtf/PartitionAlloc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698