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

Unified Diff: Source/bindings/core/v8/ExceptionState.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/ExceptionMessages.h ('k') | Source/bindings/core/v8/ExceptionStatePlaceholder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/ExceptionState.h
diff --git a/Source/bindings/core/v8/ExceptionState.h b/Source/bindings/core/v8/ExceptionState.h
index f4d2351e980b48f72017dab086cee2f67885a536..9c83054da73dca756bd2499ba0b335b9ceac0b61 100644
--- a/Source/bindings/core/v8/ExceptionState.h
+++ b/Source/bindings/core/v8/ExceptionState.h
@@ -36,6 +36,7 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/V8ThrowException.h"
#include "core/CoreExport.h"
+#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
#include "wtf/text/WTFString.h"
#include <v8.h>
@@ -48,6 +49,7 @@ class ScriptState;
class CORE_EXPORT ExceptionState {
WTF_MAKE_NONCOPYABLE(ExceptionState);
+ WTF_MAKE_FAST_ALLOCATED(ExceptionState);
public:
enum Context {
ConstructionContext,
@@ -140,6 +142,7 @@ private:
// Used if exceptions can/should not be directly thrown.
class CORE_EXPORT NonThrowableExceptionState final : public ExceptionState {
+ WTF_MAKE_NONCOPYABLE(NonThrowableExceptionState);
public:
NonThrowableExceptionState(): ExceptionState(ExceptionState::UnknownContext, 0, 0, v8::Local<v8::Object>(), v8::Isolate::GetCurrent()) { }
void throwDOMException(const ExceptionCode&, const String& message) override;
@@ -150,6 +153,7 @@ public:
// Used if any exceptions thrown are ignorable.
class CORE_EXPORT TrackExceptionState final : public ExceptionState {
+ WTF_MAKE_NONCOPYABLE(TrackExceptionState);
public:
TrackExceptionState(): ExceptionState(ExceptionState::UnknownContext, 0, 0, v8::Local<v8::Object>(), v8::Isolate::GetCurrent()) { }
void throwDOMException(const ExceptionCode&, const String& message) override;
« no previous file with comments | « Source/bindings/core/v8/ExceptionMessages.h ('k') | Source/bindings/core/v8/ExceptionStatePlaceholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698