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; |