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

Unified Diff: third_party/WebKit/Source/platform/heap/StackFrameDepth.h

Issue 1609943003: Make platform/heap to use USING_FAST_MALLOC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile error Created 4 years, 11 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
Index: third_party/WebKit/Source/platform/heap/StackFrameDepth.h
diff --git a/third_party/WebKit/Source/platform/heap/StackFrameDepth.h b/third_party/WebKit/Source/platform/heap/StackFrameDepth.h
index bb6591f9142e2d6adc6fd9c9b9e118ba3c2417e3..35a4dc41539647d9b9e9086ec07362cfff6f5234 100644
--- a/third_party/WebKit/Source/platform/heap/StackFrameDepth.h
+++ b/third_party/WebKit/Source/platform/heap/StackFrameDepth.h
@@ -6,6 +6,7 @@
#define StackFrameDepth_h
#include "platform/PlatformExport.h"
+#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
#include <cstddef>
#include <stdint.h>
@@ -16,6 +17,7 @@ namespace blink {
// Use isSafeToRecurse() to query if there is a room in current
// call stack for more recursive call.
class PLATFORM_EXPORT StackFrameDepth final {
+ STATIC_ONLY(StackFrameDepth);
public:
inline static bool isSafeToRecurse()
{
@@ -78,6 +80,8 @@ private:
};
class StackFrameDepthScope {
+ STACK_ALLOCATED();
+ WTF_MAKE_NONCOPYABLE(StackFrameDepthScope);
public:
StackFrameDepthScope()
{

Powered by Google App Engine
This is Rietveld 408576698