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

Unified Diff: Source/core/inspector/InspectorTaskRunner.h

Issue 1308273007: Make classes and structures in core/inspector fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/core/inspector/InspectorState.h ('k') | Source/core/inspector/InspectorTraceEvents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorTaskRunner.h
diff --git a/Source/core/inspector/InspectorTaskRunner.h b/Source/core/inspector/InspectorTaskRunner.h
index cd754dd9ec1a0cf6cf3a49c219739573f582837f..4489f33a40385d4cb1f2dfb7526815039e843510 100644
--- a/Source/core/inspector/InspectorTaskRunner.h
+++ b/Source/core/inspector/InspectorTaskRunner.h
@@ -6,6 +6,8 @@
#define InspectorTaskRunner_h
#include "core/CoreExport.h"
+#include "wtf/Allocator.h"
+#include "wtf/FastAllocBase.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
#include "wtf/OwnPtr.h"
@@ -16,11 +18,13 @@ namespace blink {
class CORE_EXPORT InspectorTaskRunner final {
WTF_MAKE_NONCOPYABLE(InspectorTaskRunner);
+ WTF_MAKE_FAST_ALLOCATED(InspectorTaskRunner);
public:
explicit InspectorTaskRunner(v8::Isolate*);
~InspectorTaskRunner();
class Task {
+ WTF_MAKE_FAST_ALLOCATED(Task);
public:
virtual ~Task() { }
virtual void run() = 0;
@@ -31,6 +35,7 @@ public:
void runPendingTasks();
class CORE_EXPORT IgnoreInterruptsScope final {
+ WTF_MAKE_FAST_ALLOCATED(IgnoreInterruptsScope);
public:
explicit IgnoreInterruptsScope(InspectorTaskRunner*);
~IgnoreInterruptsScope();
« no previous file with comments | « Source/core/inspector/InspectorState.h ('k') | Source/core/inspector/InspectorTraceEvents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698