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

Unified Diff: Source/bindings/core/v8/ScriptState.h

Issue 1278983003: Adding allocator annotations to blink classes and structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed patch conflict Created 5 years, 4 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/bindings/core/v8/ScriptPromise.h ('k') | Source/bindings/core/v8/ScriptStreamerThread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/ScriptState.h
diff --git a/Source/bindings/core/v8/ScriptState.h b/Source/bindings/core/v8/ScriptState.h
index 87e2c9a870695502209fa22df8e706684378167b..c6cb0805bc796eab666107877b58a1ccfb100872 100644
--- a/Source/bindings/core/v8/ScriptState.h
+++ b/Source/bindings/core/v8/ScriptState.h
@@ -28,6 +28,7 @@ class CORE_EXPORT ScriptState : public RefCounted<ScriptState> {
WTF_MAKE_NONCOPYABLE(ScriptState);
public:
class Scope {
+ STACK_ALLOCATED();
public:
// You need to make sure that scriptState->context() is not empty before creating a Scope.
explicit Scope(ScriptState* scriptState)
@@ -140,6 +141,7 @@ private:
// You need to call clear() once you no longer need the context. Otherwise, the context will leak.
class ScriptStateProtectingContext {
WTF_MAKE_NONCOPYABLE(ScriptStateProtectingContext);
+ WTF_MAKE_FAST_ALLOCATED(ScriptStateProtectingContext);
public:
ScriptStateProtectingContext(ScriptState* scriptState)
: m_scriptState(scriptState)
« no previous file with comments | « Source/bindings/core/v8/ScriptPromise.h ('k') | Source/bindings/core/v8/ScriptStreamerThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698